aboutsummaryrefslogtreecommitdiff
path: root/docs/history/13-gap-fixes/code/tests/manyerrors.zc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/history/13-gap-fixes/code/tests/manyerrors.zc')
-rw-r--r--docs/history/13-gap-fixes/code/tests/manyerrors.zc6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/history/13-gap-fixes/code/tests/manyerrors.zc b/docs/history/13-gap-fixes/code/tests/manyerrors.zc
new file mode 100644
index 0000000..7c9febf
--- /dev/null
+++ b/docs/history/13-gap-fixes/code/tests/manyerrors.zc
@@ -0,0 +1,6 @@
+// several errors in one run: a syntax error, an analyzer error, a type error
+typecheck on;
+fn f() { let a = ; return 0; }
+fn g() { let x = new(3); return 0; }
+fn h() -> int { *char s = 5; return 1; }
+fn main() { return 0 }