aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/o3_param.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/langerrors/o3_param.zc')
-rw-r--r--tests/langerrors/o3_param.zc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/langerrors/o3_param.zc b/tests/langerrors/o3_param.zc
new file mode 100644
index 0000000..5694720
--- /dev/null
+++ b/tests/langerrors/o3_param.zc
@@ -0,0 +1,3 @@
+// expect: o3 parameters need a type
+o3 int f(x) { return x; }
+fn main() { return f(1); }