diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-12 16:37:36 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-12 16:37:36 +0000 |
commit | 0501c63609a567b89289f3412e5d0225f239d7ea (patch) | |
tree | 5afa8d22290a433235c3e94729458a6cd80e35af /clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp | |
parent | 5a41f68fe2adb7cbd7b4fdbb52c7bd496cd83116 (diff) | |
download | bcm5719-llvm-0501c63609a567b89289f3412e5d0225f239d7ea.tar.gz bcm5719-llvm-0501c63609a567b89289f3412e5d0225f239d7ea.zip |
Change the way we store initialization kinds so that all direct inits can distinguish between list and parens form. This allows us to correctly diagnose the last test cases from litb.
llvm-svn: 150343
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp')
-rw-r--r-- | clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp b/clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp index d8b79deb62a..b716d81834f 100644 --- a/clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp +++ b/clang/test/SemaCXX/cxx0x-initializer-aggregates.cpp @@ -56,4 +56,6 @@ namespace aggregate { // String is not default-constructible static_assert(sizeof(overloaded({1})) == sizeof(one), "bad overload"); } + + struct C { int a[2]; C():a({1, 2}) { } }; // expected-error {{array initializer must be an initializer list}} } |