diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
| commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
| tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/PCH/stmt-attrs.cpp | |
| parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) | |
Notes
Diffstat (limited to 'test/PCH/stmt-attrs.cpp')
| -rw-r--r-- | test/PCH/stmt-attrs.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/test/PCH/stmt-attrs.cpp b/test/PCH/stmt-attrs.cpp index 3d7c7a27a7e24..170e34975e624 100644 --- a/test/PCH/stmt-attrs.cpp +++ b/test/PCH/stmt-attrs.cpp @@ -1,24 +1,24 @@ -// RUN: %clang_cc1 -std=c++11 -emit-pch -o %t.a %s
-// RUN: %clang_cc1 -std=c++11 -include-pch %t.a %s -ast-print -o - | FileCheck %s
-
-#ifndef HEADER
-#define HEADER
-
-inline void test(int i) {
- switch (i) {
- case 1:
- // Notice that the NullStmt has two attributes.
- // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}}
- [[clang::fallthrough]] [[clang::fallthrough]];
- case 2:
- break;
- }
-}
-
-#else
-
-void foo(void) {
- test(1);
-}
-
-#endif
+// RUN: %clang_cc1 -std=c++11 -emit-pch -o %t.a %s +// RUN: %clang_cc1 -std=c++11 -include-pch %t.a %s -ast-print -o - | FileCheck %s + +#ifndef HEADER +#define HEADER + +inline void test(int i) { + switch (i) { + case 1: + // Notice that the NullStmt has two attributes. + // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}} + [[clang::fallthrough]] [[clang::fallthrough]]; + case 2: + break; + } +} + +#else + +void foo(void) { + test(1); +} + +#endif |
