aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-21 10:09:00 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:04:28 +0900
commit6daa56323634e1142f2d22a756a77a74382cf3a7 (patch)
tree85355ad1ad0cf5dca837f8b4cd7e6b09eaa7bd9d /tests
parent16bbc2e0d72f94f8061ba294d1776edfe5bf8a55 (diff)
downloadducc-6daa56323634e1142f2d22a756a77a74382cf3a7.tar.gz
ducc-6daa56323634e1142f2d22a756a77a74382cf3a7.tar.zst
ducc-6daa56323634e1142f2d22a756a77a74382cf3a7.zip
feat: separate main.c
Diffstat (limited to 'tests')
-rw-r--r--tests/060.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/060.sh b/tests/060.sh
new file mode 100644
index 0000000..03d65b7
--- /dev/null
+++ b/tests/060.sh
@@ -0,0 +1,20 @@
+set -e
+
+cat <<'EOF' > expected
+42
+EOF
+
+cat <<'EOF' > header.h
+#define A 42
+EOF
+
+bash ../../test_diff.sh <<'EOF'
+#include "header.h"
+
+int printf();
+
+int main() {
+ printf("%d\n", A);
+ return 0;
+}
+EOF