From f1e9860ab638594e95db0ada848157b860eeb831 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 1 May 2026 22:42:23 +0300 Subject: add type_mismatch test --- tests/type_mismatch/test.mk | 1 + tests/type_mismatch/type_mismatch.fwd | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 tests/type_mismatch/test.mk create mode 100644 tests/type_mismatch/type_mismatch.fwd (limited to 'tests') diff --git a/tests/type_mismatch/test.mk b/tests/type_mismatch/test.mk new file mode 100644 index 0000000..3f589d9 --- /dev/null +++ b/tests/type_mismatch/test.mk @@ -0,0 +1 @@ +XFAIL += type_mismatch,'type_mismatch.fwd:4:12: error: type mismatch: i32 vs i64' diff --git a/tests/type_mismatch/type_mismatch.fwd b/tests/type_mismatch/type_mismatch.fwd new file mode 100644 index 0000000..e837740 --- /dev/null +++ b/tests/type_mismatch/type_mismatch.fwd @@ -0,0 +1,5 @@ +takes_i32(i32 n) {} + +main() { + takes_i32(20); +} -- cgit v1.2.3