aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-17 07:20:51 +0900
committernsfisis <nsfisis@gmail.com>2025-08-17 07:20:51 +0900
commit48d5ca9bcf08a0995008759bf5bb9fec5a1631bc (patch)
treedc3e9ce6099e950e97f7674afd04d96263b42a35 /tests
parentb1307971d1b42556e79607fba0ca4617e25e7c54 (diff)
downloadducc-48d5ca9bcf08a0995008759bf5bb9fec5a1631bc.tar.gz
ducc-48d5ca9bcf08a0995008759bf5bb9fec5a1631bc.tar.zst
ducc-48d5ca9bcf08a0995008759bf5bb9fec5a1631bc.zip
feat: defer keyword check after preprocessing
Diffstat (limited to 'tests')
-rw-r--r--tests/094.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/094.sh b/tests/094.sh
new file mode 100644
index 0000000..2f7da73
--- /dev/null
+++ b/tests/094.sh
@@ -0,0 +1,10 @@
+set -e
+
+touch expected
+bash ../../test_diff.sh <<'EOF'
+// A keyword is treated as a normal identifier in preprocessing phase.
+#define auto int
+
+auto printf();
+auto main() {}
+EOF