Lines Matching full:fallthrough
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough -DCOMMAND_LINE_FALLTHROUGH=[[clang::fallthrough]] %s
14 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
16 :: fallthrough ] ] // testing whitespace and comments in macro definition
35 #define M1 [[clang::fallthrough]]
42 #define WRONG_MACRO1 clang::fallthrough
43 #define WRONG_MACRO2 [[clang::fallthrough]
45 #define WRONG_MACRO4 [[clang::fallthrough]]]
67 case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
70 #define TOO_LATE [[clang::fallthrough]]
77 #define MACRO_WITH_HISTORY [[clang::fallthrough]]
86 case 1: // expected-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthrough]];' to silence this warning}} expected-note{{insert 'break;' to avoid fall-through}}
88 #define MACRO_WITH_HISTORY [[clang::fallthrough]]
96 #define MACRO_WITH_HISTORY [[clang::fallthrough]]
105 #define MACRO_WITH_HISTORY [[clang::fallthrough]]
123 #define MACRO_WITH_HISTORY2 [[clang::fallthrough]]