aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/proto_after_def_mismatch.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/langerrors/proto_after_def_mismatch.zc')
-rw-r--r--tests/langerrors/proto_after_def_mismatch.zc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/langerrors/proto_after_def_mismatch.zc b/tests/langerrors/proto_after_def_mismatch.zc
new file mode 100644
index 0000000..94a04e6
--- /dev/null
+++ b/tests/langerrors/proto_after_def_mismatch.zc
@@ -0,0 +1,4 @@
+// expect: f: doesn't match its earlier declaration
+int f(int a) { return a; }
+int f(int a, int b);
+fn main() { return f(1); }