diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-05-13 16:12:14 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-05-13 16:12:14 +0000 |
commit | 8063c3b80c710a42ff9f32546ebefa89b10e55b4 (patch) | |
tree | 34d57e7841baeb6339cb03f21f8e6f7ba8173f80 /clang/test/SemaCXX/ast-print.cpp | |
parent | 12a8bf09d0751b9ed05595809879de783ceba58d (diff) | |
download | bcm5719-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/SemaCXX/ast-print.cpp')
-rw-r--r-- | clang/test/SemaCXX/ast-print.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/ast-print.cpp b/clang/test/SemaCXX/ast-print.cpp index 3d98fd8ef3a..4851571283f 100644 --- a/clang/test/SemaCXX/ast-print.cpp +++ b/clang/test/SemaCXX/ast-print.cpp @@ -196,3 +196,15 @@ void foo() { return; } }; + +namespace { +void test(int i) { + switch (i) { + case 1: + // CHECK: {{\[\[clang::fallthrough\]\]}} + [[clang::fallthrough]]; + case 2: + break; + } +} +} |