From 8063c3b80c710a42ff9f32546ebefa89b10e55b4 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 13 May 2014 16:12:14 +0000 Subject: 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 --- clang/test/PCH/stmt-attrs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/test/PCH/stmt-attrs.cpp') 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; } -- cgit v1.2.3