aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/083.sh
blob: 64d03e529351097e4764fcd690a8c71630cd1880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cat <<'EOF' > expected
main.c:1: unknown preprocessor directive (foo)
EOF

test_compile_error <<'EOF'
#foo

int main() {}
EOF

cat <<'EOF' > expected
main.c:1: unknown preprocessor directive (bar)
EOF

test_compile_error <<'EOF'
# bar 1 2 3

int main() {}
EOF