diff options
Diffstat (limited to 'tests/fuzzing/bc_inputs2/misc2.txt')
-rw-r--r-- | tests/fuzzing/bc_inputs2/misc2.txt | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/tests/fuzzing/bc_inputs2/misc2.txt b/tests/fuzzing/bc_inputs2/misc2.txt new file mode 100644 index 000000000000..3b3aa683402c --- /dev/null +++ b/tests/fuzzing/bc_inputs2/misc2.txt @@ -0,0 +1,110 @@ +define w() { auto z; return 1; } +define x() { + "x" + return (1) +} +define y() { + "y" + return (2) +} +define z() { + "z" + return (3) +} + +define v() { return } + +v() + +w() + +if (x() == y()) { 1 } +1 +if (x() <= y()) { 2 } +if (y() >= x()) { 3 } +if (x() != y()) { 4 } +if (x() < y()) { 5 } +if (y() > x()) { 6 } + +if (x() == z()) { 11 } +11 +if (x() <= z()) { 12 } +if (z() >= x()) { 13 } +if (x() != z()) { 14 } +if (x() < z()) { 15 } +if (z() > x()) { 16 } + +x = -10 +while (x <= 0) { + x + if (x == -5) break; + x += 1 +} + +define u() { + auto a[]; + return a[0] +} + +u() + +if (x == -4) x +else x - 4 + +x = 1 + +if (x == 1) 1 else 2 +if (x == 0) 1 else 2 + +if (x == 1) 1 else if (x == 0) 2 else 3 +if (x == 0) 1 else if (x == 1) 2 else 3 +if (x == -1) 1 else if (x == 0) 2 else 3 + +if (x == 1) if (x != 0) 1 else 2 else 3 +if (x == 1) if (x == 0) 1 else 2 else 3 +if (x != 1) if (x == 0) 1 else 2 else 3 + +if (x == 1) while (x > 0) { x ; x -= 1 } else 0 +x = 1 +if (x == 0) while (x > 0) { x ; x -= 1 } else 0 + +if(x == 1) { + 11 + while(x == 1) { + 21 + while(x == 1) { + 31 + break + 32 + } + 22 + break + 23 + } + 12 +} +99 + +for (;;) { 123 ; break; } +for (i = 0;; ++i) { i ; if (i == 2) break; else i; } +for (i = 0;;!++i) { i ; if (i == 2) break; else i; } +for (i = 0;; ++i) { i ; if (i != 2) i else break } + +while (i > 0) if (i == 1) break else i-- +while (i < 3) if (i != 2) i++ else break + +for(i=1; i<=3; i++) { i; if(i==2) continue; print i,i,"\n" } + +print 1,2,3 +print "\n" + +ifz = 1 +ifz +++ifz +ifz++ +ifz + +{ + 4 + 5 +} |