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/helpers.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/helpers.sh')
| -rw-r--r-- | tests/helpers.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/helpers.sh b/tests/helpers.sh index eaccd5c..a69e213 100644 --- a/tests/helpers.sh +++ b/tests/helpers.sh @@ -49,6 +49,13 @@ function test_compile_error() { diff -u expected output } +function test_cpp() { + cat > main.c + + "$ducc" -E main.c > output + diff -u -Z expected output +} + function test_example() { filename="../../../examples/$1.c" |
