diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-08-12 21:54:04 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-08-12 21:54:04 +0000 |
commit | 24b3fed69fd2bb25a0c2d2a62e051f8702e92391 (patch) | |
tree | afd3519febba5747f556fbf4e08764c6ad30db81 /clang/test/SemaCXX/ast-print.cpp | |
parent | e2358c1debe988a9ff262cb267c791c93ee04a4a (diff) | |
download | bcm5719-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.cpp | 11 |
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; }; +} |