blob: bf164dd57614d5707add64b64addba79a2dfd93f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//TEST:SIMPLE(filecheck=CHECK):
// Test to evaluate the behavior of unreachable code blocks within a switch statement. A switch statement with multiple default cases is not allowed and should throw an error
void test()
{
switch (0)
{
default: break;
// CHECK: ([[# @LINE+1]]): error 30600: {{.*}}
default: break;
}
return;
}
|