aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/061.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-21 17:44:22 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:04:29 +0900
commitadfe15f9fa0f4e69b343679dca6cf12fc96e3819 (patch)
tree8c50b5fe714c4cfb4337e9cbc7a56dc21d394abd /tests/061.sh
parent6daa56323634e1142f2d22a756a77a74382cf3a7 (diff)
downloadducc-adfe15f9fa0f4e69b343679dca6cf12fc96e3819.tar.gz
ducc-adfe15f9fa0f4e69b343679dca6cf12fc96e3819.tar.zst
ducc-adfe15f9fa0f4e69b343679dca6cf12fc96e3819.zip
feat: define __ducc__ macro
Diffstat (limited to 'tests/061.sh')
-rw-r--r--tests/061.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/061.sh b/tests/061.sh
new file mode 100644
index 0000000..17c5f6a
--- /dev/null
+++ b/tests/061.sh
@@ -0,0 +1,14 @@
+set -e
+
+cat <<'EOF' > expected
+1
+EOF
+
+bash ../../test_diff.sh <<'EOF'
+int printf();
+
+int main() {
+ printf("%d\n", __ducc__);
+ return 0;
+}
+EOF