aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/024.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/024.sh')
-rw-r--r--tests/024.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/024.sh b/tests/024.sh
index 99557e1..20453a0 100644
--- a/tests/024.sh
+++ b/tests/024.sh
@@ -1,6 +1,9 @@
set -e
cat <<'EOF' > expected
+3
+3
+3
EOF
bash ../../test_diff.sh <<'EOF'
int printf();
@@ -29,6 +32,10 @@ int main() {
lp1 = &l;
lp2 = &l + 3;
+ printf("%d\n", cp2 - cp1);
+ printf("%d\n", ip2 - ip1);
+ printf("%d\n", lp2 - lp1);
+
return 0;
}
EOF