| // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough-per-function %s |
| case 1: // expected-warning{{unannotated fall-through}} 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}} |
| int fallthrough2(int n) { |
| case 1: // no warning, as we didn't "opt-in" for it in this method |
| case 112: // no warning, as we didn't "opt-in" for it in this method |
| case 113: // no warning, as we didn't "opt-in" for it in this method |