[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / stmt-attrs.cpp
blob170e34975e624300415b50ea0ca2e42fa2426f70
1 // 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
4 #ifndef HEADER
5 #define HEADER
7 inline 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;
18 #else
20 void foo(void) {
21 test(1);
24 #endif