diff options
Diffstat (limited to 'tests/101.sh')
| -rw-r--r-- | tests/101.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/101.sh b/tests/101.sh new file mode 100644 index 0000000..338b879 --- /dev/null +++ b/tests/101.sh @@ -0,0 +1,22 @@ +cat <<'EOF' > expected +main.c:2: expected '#endif', but got '<eof>' +EOF +test_compile_error <<'EOF' +#if 0 +EOF + +cat <<'EOF' > expected +main.c:3: expected '#endif', but got '<eof>' +EOF +test_compile_error <<'EOF' +#if 1 +#else +EOF + +cat <<'EOF' > expected +main.c:3: expected '#endif', but got '<eof>' +EOF +test_compile_error <<'EOF' +#if 1 +#elif 1 +EOF |
