summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/ast-print.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-08-12 21:54:04 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-08-12 21:54:04 +0000
commit24b3fed69fd2bb25a0c2d2a62e051f8702e92391 (patch)
treeafd3519febba5747f556fbf4e08764c6ad30db81 /clang/test/SemaCXX/ast-print.cpp
parente2358c1debe988a9ff262cb267c791c93ee04a4a (diff)
downloadbcm5719-llvm-24b3fed69fd2bb25a0c2d2a62e051f8702e92391.tar.gz
bcm5719-llvm-24b3fed69fd2bb25a0c2d2a62e051f8702e92391.zip
Fix pretty-printing for unnamed unions.
This is just a couple of minor fixes to account for the existence of ElaboratedType. llvm-svn: 188209
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 8e945bde7d6..a1975b4ac26 100644
--- a/clang/test/SemaCXX/ast-print.cpp
+++ b/clang/test/SemaCXX/ast-print.cpp
@@ -153,3 +153,14 @@ void test13() {
__c11_atomic_load(&i, 0);
}
+
+// CHECK: void test14() {
+// CHECK: struct X {
+// CHECK: union {
+// CHECK: int x;
+// CHECK: } x;
+// CHECK: };
+// CHECK: }
+void test14() {
+ struct X { union { int x; } x; };
+}
OpenPOWER on IntegriCloud