aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/054.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/054.sh')
-rw-r--r--tests/054.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/054.sh b/tests/054.sh
new file mode 100644
index 0000000..06252b9
--- /dev/null
+++ b/tests/054.sh
@@ -0,0 +1,23 @@
+set -e
+
+cat <<'EOF' > expected
+0
+1
+EOF
+bash ../../test_diff.sh <<'EOF'
+int printf();
+void* calloc();
+
+struct S {
+ int a;
+ int b;
+};
+
+int main() {
+ struct S* s = calloc(1, sizeof(struct S));
+ s->b = 1;
+ printf("%ld\n", s->a);
+ printf("%ld\n", s->b);
+ return 0;
+}
+EOF