diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-29 01:32:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-29 01:34:37 +0900 |
| commit | fc396d2b088a8b837f65b1e55a424372ade8bd37 (patch) | |
| tree | 4fd534027318a9234dbd7fb1450495186b9efe94 /tests | |
| parent | 7c1f940960c3548b788b089c02e4dfd8277bf8fa (diff) | |
| download | ducc-fc396d2b088a8b837f65b1e55a424372ade8bd37.tar.gz ducc-fc396d2b088a8b837f65b1e55a424372ade8bd37.tar.zst ducc-fc396d2b088a8b837f65b1e55a424372ade8bd37.zip | |
feat: support #error and #warning directives
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/103.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/103.sh b/tests/103.sh new file mode 100644 index 0000000..f10d215 --- /dev/null +++ b/tests/103.sh @@ -0,0 +1,15 @@ +cat <<'EOF' > expected +main.c:1: foo +EOF +test_compile_error <<'EOF' +#error "foo" +EOF + +cat <<'EOF' > expected +EOF +test_diff <<'EOF' +#if 0 +#error "foo" +#endif +int main() {} +EOF |
