aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/083.sh
blob: 1d95dae981c35dd62bb34daaacd9c1e2c049e215 (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 (<identifier>))
EOF

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

int main() {}
EOF

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

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

int main() {}
EOF