summary refs log tree commit diff
path: root/tests/pracownia1/parse_error.xi
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pracownia1/parse_error.xi')
-rw-r--r--tests/pracownia1/parse_error.xi75
1 files changed, 75 insertions, 0 deletions
diff --git a/tests/pracownia1/parse_error.xi b/tests/pracownia1/parse_error.xi
new file mode 100644
index 0000000..7bc8eee
--- /dev/null
+++ b/tests/pracownia1/parse_error.xi
@@ -0,0 +1,75 @@
+x:int
+
+main(x:int y:int)
+{
+}
+
+main() int int {
+
+}
+
+main()
+{
+    (x:int, y:int) = pair()
+}
+
+pair(): int, int
+{
+    return (0,0)
+}
+
+f()
+{
+    return 1;
+    x = 1
+}
+
+f()
+{
+    x = ''
+}
+
+f()
+{
+    x = 'ab'
+}
+
+f()
+{
+    x = '
+'
+}
+
+f()
+{
+    x = '\a'
+}
+
+f()
+{
+    x = "a
+b"
+}
+
+f()
+{
+    x = "a\tb"
+}
+
+f()
+{
+    while cond return 1
+}
+
+f()
+{
+    if cond return 1
+}
+
+f()
+{
+    if cond return 1 else z = 1
+}
+
+//@PRACOWNIA
+//@should_not_parse