From 8de7fa9da5fd8015f4fcc826b9270061b7b89478 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 13 Sep 2025 00:05:12 +0900 Subject: feat: implement -E flag (preprocess only) --- tests/helpers.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/helpers.sh') 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" -- cgit v1.2.3-70-g09d2