diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-13 00:05:12 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-13 01:38:56 +0900 |
| commit | 8de7fa9da5fd8015f4fcc826b9270061b7b89478 (patch) | |
| tree | ec9c1e56f179be207c31a113a0a96210f7509431 /tests/test_keywords.sh | |
| parent | d41a97e957ef616d194f60b9b79820cd0162d920 (diff) | |
| download | ducc-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.sh | 11 |
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 - |
