blob: 0207aa6c7045d12ec535d734203365ef5021b347 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
cat <<'EOF' > expected
main.c:2: 'case' label not within a switch statement
EOF
test_compile_error <<'EOF'
int main() {
case 1:
return 0;
}
EOF
cat <<'EOF' > expected
main.c:2: 'default' label not within a switch statement
EOF
test_compile_error <<'EOF'
int main() {
default:
return 0;
}
EOF
|