From fc396d2b088a8b837f65b1e55a424372ade8bd37 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 29 Aug 2025 01:32:34 +0900 Subject: feat: support #error and #warning directives --- tests/103.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/103.sh (limited to 'tests') 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 -- cgit v1.2.3-70-g09d2