diff options
| author | Alexis Hunt <alercah@gmail.com> | 2012-06-15 21:22:05 +0000 |
|---|---|---|
| committer | Alexis Hunt <alercah@gmail.com> | 2012-06-15 21:22:05 +0000 |
| commit | 2178f14c10af824ec54fae6c9b21a2f08f990ea7 (patch) | |
| tree | 5474c95a52a3591409440ffec707b5685a41882d /clang/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp | |
| parent | 21f5d4d629ea594fb7ccacde998f4202bd2be9d1 (diff) | |
| download | bcm5719-llvm-2178f14c10af824ec54fae6c9b21a2f08f990ea7.tar.gz bcm5719-llvm-2178f14c10af824ec54fae6c9b21a2f08f990ea7.zip | |
Stop referring to functions as methods in per-function fallthrough-checking.
llvm-svn: 158545
Diffstat (limited to 'clang/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp')
| -rw-r--r-- | clang/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp b/clang/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp index 3ca8590d39d..9f9f5924a06 100644 --- a/clang/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp +++ b/clang/test/SemaCXX/switch-implicit-fallthrough-per-method.cpp @@ -1,18 +1,18 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough-per-method %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough-per-function %s int fallthrough(int n) { switch (n / 10) { case 0: n += 100; - case 1: // expected-warning{{unannotated fall-through between switch labels in partly annotated method}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}} + case 1: // expected-warning{{unannotated fall-through}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}} switch (n) { case 111: n += 111; [[clang::fallthrough]]; case 112: n += 112; - case 113: // expected-warning{{unannotated fall-through between switch labels in partly annotated method}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}} + case 113: // expected-warning{{unannotated fall-through}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}} n += 113; break ; } |

