aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/i-c-e-cxx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/i-c-e-cxx.cpp')
-rw-r--r--test/SemaCXX/i-c-e-cxx.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/SemaCXX/i-c-e-cxx.cpp b/test/SemaCXX/i-c-e-cxx.cpp
index 9e01ccb6b336..2bfb67ffdf5b 100644
--- a/test/SemaCXX/i-c-e-cxx.cpp
+++ b/test/SemaCXX/i-c-e-cxx.cpp
@@ -23,10 +23,8 @@ int a() {
// expected-note@-2 {{read of object outside its lifetime}}
#endif
- switch(1) {
-#if __cplusplus <= 199711L
- // expected-warning@-2 {{no case matching constant switch condition '1'}}
-#endif
+ switch(1) { // do not warn that 1 is not a case value;
+ // 't' might have been expected to evalaute to 1
case t:; // expected-note {{initializer of 't' is not a constant expression}}
#if __cplusplus <= 199711L
// expected-error@-2 {{not an integral constant expression}}