diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/083.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/083.sh b/tests/083.sh index 64d03e5..2152666 100644 --- a/tests/083.sh +++ b/tests/083.sh @@ -1,7 +1,6 @@ cat <<'EOF' > expected -main.c:1: unknown preprocessor directive (foo) +main.c:1: invalid preprocessing directive, '#foo' EOF - test_compile_error <<'EOF' #foo @@ -9,11 +8,20 @@ int main() {} EOF cat <<'EOF' > expected -main.c:1: unknown preprocessor directive (bar) +main.c:1: invalid preprocessing directive, '#bar' EOF - test_compile_error <<'EOF' # bar 1 2 3 int main() {} EOF + +cat <<'EOF' > expected +EOF +test_diff <<'EOF' +#if 0 +#baz +#endif + +int main() {} +EOF |
