aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/typeoff.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/programs/typeoff.zc')
-rw-r--r--tests/programs/typeoff.zc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/programs/typeoff.zc b/tests/programs/typeoff.zc
new file mode 100644
index 0000000..d82bca8
--- /dev/null
+++ b/tests/programs/typeoff.zc
@@ -0,0 +1,2 @@
+// the typechecker is off unless asked for: this mismatch compiles and runs
+fn main() { char* s = 5; put_n(s as int + 1); put_c(10); return 0; }