summaryrefslogtreecommitdiff
path: root/test/Analysis/cxx11-crashes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/cxx11-crashes.cpp')
-rw-r--r--test/Analysis/cxx11-crashes.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Analysis/cxx11-crashes.cpp b/test/Analysis/cxx11-crashes.cpp
index 3c33de33558f..c6034e6480ee 100644
--- a/test/Analysis/cxx11-crashes.cpp
+++ b/test/Analysis/cxx11-crashes.cpp
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -analyze -analyzer-checker=core -std=c++11 -verify %s
-// expected-no-diagnostics
// radar://11485149, PR12871
class PlotPoint {
@@ -91,6 +90,6 @@ void test() {
void fallthrough() {
switch (1) {
case 1:
- [[clang::fallthrough]];
+ [[clang::fallthrough]]; // expected-error {{does not directly precede}}
}
}