diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-26 21:31:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-26 21:31:17 +0000 |
commit | 8385a069290100fad3aed65f12fc3f79a4d2b9f3 (patch) | |
tree | 1f6b559ebf7eee31191ad333363f5cfc88613ae8 /clang/test/SemaCXX/aggregate-initialization.cpp | |
parent | 5d284ae8a0c6d01880a264a3dad8c29dac72bfba (diff) | |
download | bcm5719-llvm-8385a069290100fad3aed65f12fc3f79a4d2b9f3.tar.gz bcm5719-llvm-8385a069290100fad3aed65f12fc3f79a4d2b9f3.zip |
Introduce Type::isStructureOrClassType(), which does the obvious
thing. Audit all uses of Type::isStructure(), changing those calls to
isStructureOrClassType() as needed (which is alsmost
everywhere). Fixes the remaining failure in Boost.Utility/Swap.
llvm-svn: 102386
Diffstat (limited to 'clang/test/SemaCXX/aggregate-initialization.cpp')
-rw-r--r-- | clang/test/SemaCXX/aggregate-initialization.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/aggregate-initialization.cpp b/clang/test/SemaCXX/aggregate-initialization.cpp index 81a0e6f7440..4c34447940f 100644 --- a/clang/test/SemaCXX/aggregate-initialization.cpp +++ b/clang/test/SemaCXX/aggregate-initialization.cpp @@ -67,3 +67,16 @@ void f() { C c1 = { 1 }; } + +class Agg { +public: + int i, j; +}; + +class AggAgg { +public: + Agg agg1; + Agg agg2; +}; + +AggAgg aggagg = { 1, 2, 3, 4 }; |