aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/083.sh
blob: 7502cf32e4433cc6b2fa0275587937b5a5feefa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set -e

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

bash ../../test_compile_error.sh <<'EOF'
#foo

int main() {}
EOF

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

bash ../../test_compile_error.sh <<'EOF'
# bar 1 2 3

int main() {}
EOF