diff options
Diffstat (limited to 'test/SemaCXX/switch-implicit-fallthrough-per-method.cpp')
-rw-r--r-- | test/SemaCXX/switch-implicit-fallthrough-per-method.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp b/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp index 009c8180b1..6880bdd5f4 100644 --- a/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp +++ b/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp @@ -41,9 +41,8 @@ int fallthrough2(int n) { void unscoped(int n) { switch (n % 2) { case 0: - // FIXME: This should be typo-corrected, probably. - [[fallthrough]]; // expected-warning{{unknown attribute 'fallthrough' ignored}} - case 2: // expected-warning{{unannotated fall-through}} expected-note{{clang::fallthrough}} expected-note{{break;}} + [[fallthrough]]; + case 2: [[clang::fallthrough]]; case 1: break; |