blob: 877f9e9e572ed9c78935d6d1d864b725b16d355e (
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
28
|
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
|