Lines Matching full:fallthrough
7 [[fallthrough]]; // ok
10 [[fallthrough]]; // ok
16 [[fallthrough]]; // expected-error {{does not directly precede switch label}}
19 [[fallthrough]]; // expected-error {{does not directly precede switch label}}
22 [[fallthrough]]; // expected-error {{does not directly precede switch label}}
24 do [[fallthrough]]; while (true); // expected-error {{does not directly precede switch label}}
26 do [[fallthrough]]; while (false); // expected-error {{does not directly precede switch label}}
32 [[fallthrough]];
35 [[fallthrough]]; // expected-error {{does not directly precede switch label}}
40 case 10: // no warning, -Wimplicit-fallthrough is not enabled in this test, and does not need to
46 [[fallthrough]] typedef int n; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}}
47 typedef int [[fallthrough]] n; // expected-error {{'fallthrough' attribute cannot be applied to types}}
48 typedef int n [[fallthrough]]; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}}
50 enum [[fallthrough]] E {}; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}}
51 class [[fallthrough]] C {}; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}}
53 [[fallthrough]] // expected-error {{'fallthrough' attribute cannot be applied to a declaration}}
55 [[fallthrough]] int n; // expected-error {{'fallthrough' attribute cannot be applied to a declaration}}
56 [[fallthrough]] ++n; // expected-error-re {{{{^}}fallthrough attribute is only allowed on empty statements}}
60 [[fallthrough]];
64 [[fallthrough, fallthrough]]; // expected-error {{multiple times}}
66 [[fallthrough(0)]]; // expected-error {{argument list}}