diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/080.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/080.sh b/tests/080.sh new file mode 100644 index 0000000..ed649da --- /dev/null +++ b/tests/080.sh @@ -0,0 +1,30 @@ +set -e + +cat <<'EOF' > expected +44 +44 +46 +46 +44 +42 +42 +EOF + +bash ../../test_diff.sh <<'EOF' +int printf(); + +int main() { + int a = 42; + ++a; + a++; + printf("%d\n", a); + printf("%d\n", a++); + printf("%d\n", ++a); + printf("%d\n", a); + --a; + a--; + printf("%d\n", a--); + printf("%d\n", --a); + printf("%d\n", a); +} +EOF |
