aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/103.sh
blob: becfa503c356d28a31e9449fd83b0b4549293b7d (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
cat <<'EOF' > expected
main.c:1: foo
EOF
test_compile_error <<'EOF'
#error "foo"
EOF

cat <<'EOF' > expected
EOF
test_diff <<'EOF'
#if 0
#error "foo"
#endif
int main() {}
EOF

cat <<'EOF' > expected
main.c:5: foo
EOF
test_compile_error <<'EOF'
#define \
    A \
    B

#error "foo"
EOF