summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/stmt-attrs.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-05-13 16:12:14 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-05-13 16:12:14 +0000
commit8063c3b80c710a42ff9f32546ebefa89b10e55b4 (patch)
tree34d57e7841baeb6339cb03f21f8e6f7ba8173f80 /clang/test/PCH/stmt-attrs.cpp
parent12a8bf09d0751b9ed05595809879de783ceba58d (diff)
downloadbcm5719-llvm-8063c3b80c710a42ff9f32546ebefa89b10e55b4.tar.gz
bcm5719-llvm-8063c3b80c710a42ff9f32546ebefa89b10e55b4.zip
Fix the AST printer for attributed statements so that it does not print duplicate attribute introducers. Eg) [[clang::fallthrough]] instead of [[[[clang::fallthrough]]]]
llvm-svn: 208706
Diffstat (limited to 'clang/test/PCH/stmt-attrs.cpp')
-rw-r--r--clang/test/PCH/stmt-attrs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/PCH/stmt-attrs.cpp b/clang/test/PCH/stmt-attrs.cpp
index 59134500031..3d7c7a27a7e 100644
--- a/clang/test/PCH/stmt-attrs.cpp
+++ b/clang/test/PCH/stmt-attrs.cpp
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -std=c++11 -emit-pch -o %t.a %s
-// RUN: %clang_cc1 -std=c++11 -fsyntax-only -include-pch %t.a %s
-// expected-no-diagnostics
+// RUN: %clang_cc1 -std=c++11 -include-pch %t.a %s -ast-print -o - | FileCheck %s
#ifndef HEADER
#define HEADER
@@ -9,7 +8,8 @@ inline void test(int i) {
switch (i) {
case 1:
// Notice that the NullStmt has two attributes.
- [[clang::fallthrough]][[clang::fallthrough]];
+ // CHECK: {{\[\[clang::fallthrough\]\] \[\[clang::fallthrough\]\]}}
+ [[clang::fallthrough]] [[clang::fallthrough]];
case 2:
break;
}
OpenPOWER on IntegriCloud