summaryrefslogtreecommitdiff
path: root/tests/bc/posix_errors.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bc/posix_errors.txt')
-rw-r--r--tests/bc/posix_errors.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/bc/posix_errors.txt b/tests/bc/posix_errors.txt
new file mode 100644
index 000000000000..2bd5d9feed84
--- /dev/null
+++ b/tests/bc/posix_errors.txt
@@ -0,0 +1,31 @@
+aa = 0
+# This is a comment.
+while (q==0) { ++q; continue; }
+last
+print "i: ", i
+halt
+define x(e) { return 0; }
+define x(e) { return 4*(e+e); }
+define x(e) { return (e+e)*4; }
+limits
+.
+if (q!=0) { x=3; } else { x=4; }
+x<=0
+while (q!=0 && x==0) { ++q; }
+while (q!=0 || x==0) { ++q; }
+while (!q) { ++q; }
+for (; x<0; ++x) { y += 1; }
+for (x=0;; ++x) { y += 1; }
+for (x=0; x<0;) { y += 1; }
+for (x=0;;) { y += 1; }
+for (; x<0;) { y += 1; }
+for (;; ++x) { y += 1; }
+for (;;) { y += 1; }
+3e2981
+9.892108e-20
+obase = 0
+obase = 1
+define void a(e) { "stuff" }
+maxibase()
+maxobase()
+maxscale()