aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/090.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/090.sh')
-rw-r--r--tests/090.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/090.sh b/tests/090.sh
new file mode 100644
index 0000000..102b9ab
--- /dev/null
+++ b/tests/090.sh
@@ -0,0 +1,21 @@
+set -e
+
+cat <<'EOF' > expected
+0 0
+1 1
+2 2
+3 3
+4 4
+EOF
+
+bash ../../test_diff.sh <<'EOF'
+int printf();
+
+int main() {
+ int i = 1000;
+ int j = 1000;
+ for (i = 0, j = 0; i < 5; i++, j++) {
+ printf("%d %d\n", i, j);
+ }
+}
+EOF