summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/ast-print.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-05-01 19:02:43 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-05-01 19:02:43 +0000
commitdf6bee8081f6debda857a04247a88c37586df73d (patch)
tree875b6f6bb096471d1cb5377943fe2820814195a3 /clang/test/SemaCXX/ast-print.cpp
parent9f8400eca4a24b0b72d2ed5efeecda215edd2a8c (diff)
downloadbcm5719-llvm-df6bee8081f6debda857a04247a88c37586df73d.tar.gz
bcm5719-llvm-df6bee8081f6debda857a04247a88c37586df73d.zip
Fix spurious trailing comma when printing some of the __c11_atomic_* builtins. Patch by Joe Sprowes!
llvm-svn: 180867
Diffstat (limited to 'clang/test/SemaCXX/ast-print.cpp')
-rw-r--r--clang/test/SemaCXX/ast-print.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/ast-print.cpp b/clang/test/SemaCXX/ast-print.cpp
index 5de8c4b51b9..921f7d8baaa 100644
--- a/clang/test/SemaCXX/ast-print.cpp
+++ b/clang/test/SemaCXX/ast-print.cpp
@@ -137,3 +137,14 @@ void test12() {
ConstrWithCleanupsClass cwcExplicitArg(VirualDestrClass(56));
}
+// CHECK: void test13() {
+// CHECK: _Atomic(int) i;
+// CHECK: __c11_atomic_init(&i, 0);
+// CHECK: __c11_atomic_load(&i, 0);
+// CHECK: }
+void test13() {
+ _Atomic(int) i;
+ __c11_atomic_init(&i, 0);
+ __c11_atomic_load(&i, 0);
+}
+
OpenPOWER on IntegriCloud