aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/switch.c')
-rw-r--r--test/Sema/switch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Sema/switch.c b/test/Sema/switch.c
index 5886fefbd9..25e1d4d88a 100644
--- a/test/Sema/switch.c
+++ b/test/Sema/switch.c
@@ -39,8 +39,8 @@ void test4()
}
switch(1) {
- case g(): // expected-error {{case label does not reduce to an integer constant}}
- case 0 ... g(): // expected-error {{case label does not reduce to an integer constant}}
+ case g(): // expected-error {{expression is not an integer constant expression}}
+ case 0 ... g(): // expected-error {{expression is not an integer constant expression}}
break;
}
@@ -50,12 +50,12 @@ void test4()
}
switch (1) {
- case g() && 0: // expected-error {{case label does not reduce to an integer constant}}
+ case g() && 0: // expected-error {{expression is not an integer constant expression}} // expected-note {{subexpression not valid in an integer constant expression}}
break;
}
switch (1) {
- case 0 ... g() || 1: // expected-error {{case label does not reduce to an integer constant}}
+ case 0 ... g() || 1: // expected-error {{expression is not an integer constant expression}} // expected-note {{subexpression not valid in an integer constant expression}}
break;
}
}