summaryrefslogtreecommitdiff
path: root/test/SemaCXX/cxx0x-initializer-constructor.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-06-03 08:26:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-06-03 08:26:00 +0000
commit80fe8a6c2142df4718e2482a0562ee6142de1685 (patch)
tree9d6edb9d38af9d9163661f2a5b51c78392a678d2 /test/SemaCXX/cxx0x-initializer-constructor.cpp
parentea7885793bc604f566db6d1d99c845bfec6b8119 (diff)
downloadclang-80fe8a6c2142df4718e2482a0562ee6142de1685.tar.gz
Implement DR990 and DR1070. Aggregate initialization initializes uninitialized
elements from {}, rather than value-initializing them. This permits calling an initializer-list constructor or constructing a std::initializer_list object. (It would also permit initializing a const reference or rvalue reference if that weren't explicitly prohibited by other rules.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/cxx0x-initializer-constructor.cpp')
-rw-r--r--test/SemaCXX/cxx0x-initializer-constructor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/cxx0x-initializer-constructor.cpp b/test/SemaCXX/cxx0x-initializer-constructor.cpp
index 2dea40c0bd..3ea53095d4 100644
--- a/test/SemaCXX/cxx0x-initializer-constructor.cpp
+++ b/test/SemaCXX/cxx0x-initializer-constructor.cpp
@@ -389,8 +389,8 @@ namespace PR11410 {
struct B {
A a; // expected-note {{in implicit initialization of field 'a'}}
- } b = { // expected-error {{call to deleted constructor}}
- };
+ } b = {
+ }; // expected-error {{call to deleted constructor}}
struct C {
C(int = 0); // expected-note 2{{candidate}}