aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/083.sh
blob: 2152666adc1c49951d35bcfbfd425c7ac96e1d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cat <<'EOF' > expected
main.c:1: invalid preprocessing directive, '#foo'
EOF
test_compile_error <<'EOF'
#foo

int main() {}
EOF

cat <<'EOF' > expected
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