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_undef.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_undef.sh')
| -rw-r--r-- | tests/test_undef.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/test_undef.sh b/tests/test_undef.sh index 34c3dad..27d03c6 100644 --- a/tests/test_undef.sh +++ b/tests/test_undef.sh @@ -1,9 +1,16 @@ cat <<'EOF' > expected -A is defined -A is undefined +int printf (); + +int main () { + + printf ( A is defined\n); + + + printf ( A is undefined\n); +} EOF -test_diff <<'EOF' +test_cpp <<'EOF' int printf(); int main() { @@ -24,4 +31,3 @@ int main() { #endif } EOF - |
