aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_keywords.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-13 00:05:12 +0900
committernsfisis <nsfisis@gmail.com>2025-09-13 01:38:56 +0900
commit8de7fa9da5fd8015f4fcc826b9270061b7b89478 (patch)
treeec9c1e56f179be207c31a113a0a96210f7509431 /tests/test_keywords.sh
parentd41a97e957ef616d194f60b9b79820cd0162d920 (diff)
downloadducc-8de7fa9da5fd8015f4fcc826b9270061b7b89478.tar.gz
ducc-8de7fa9da5fd8015f4fcc826b9270061b7b89478.tar.zst
ducc-8de7fa9da5fd8015f4fcc826b9270061b7b89478.zip
feat: implement -E flag (preprocess only)
Diffstat (limited to 'tests/test_keywords.sh')
-rw-r--r--tests/test_keywords.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/test_keywords.sh b/tests/test_keywords.sh
index 1b99b67..0bdb6f7 100644
--- a/tests/test_keywords.sh
+++ b/tests/test_keywords.sh
@@ -1,9 +1,14 @@
-touch expected
-test_diff <<'EOF'
+cat <<'EOF' > expected
+
+
+int printf ();
+int main () {}
+EOF
+
+test_cpp <<'EOF'
// A keyword is treated as a normal identifier in preprocessing phase.
#define auto int
auto printf();
auto main() {}
EOF
-