summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/switch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/switch.cpp')
-rw-r--r--clang/test/SemaCXX/switch.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/switch.cpp b/clang/test/SemaCXX/switch.cpp
index fc13630bbf1..3882a1f952c 100644
--- a/clang/test/SemaCXX/switch.cpp
+++ b/clang/test/SemaCXX/switch.cpp
@@ -57,3 +57,10 @@ namespace test3 {
template void foo<B>();
template void foo<C>(); //expected-note {{in instantiation}}
}
+
+// PR9304 and rdar://9045501
+void click_check_header_sizes() {
+ switch (0 == 8) { // expected-warning {{switch condition has boolean value}}
+ case 0: ;
+ }
+}
OpenPOWER on IntegriCloud