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