blob: 170e34975e624300415b50ea0ca2e42fa2426f70 [file] [log] [blame]
NAKAMURA Takumi729be142014-10-27 12:37:26 +00001// RUN: %clang_cc1 -std=c++11 -emit-pch -o %t.a %s
2// RUN: %clang_cc1 -std=c++11 -include-pch %t.a %s -ast-print -o - | FileCheck %s
3
4#ifndef HEADER
5#define HEADER
6
7inline void test(int i) {
8 switch (i) {
9 case 1:
10 // Notice that the NullStmt has two attributes.
11 // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}}
12 [[clang::fallthrough]] [[clang::fallthrough]];
13 case 2:
14 break;
15 }
16}
17
18#else
19
20void foo(void) {
21 test(1);
22}
23
24#endif