diff options
author | Nikola Smiljanic <popizdeh@gmail.com> | 2014-05-30 01:28:28 +0000 |
---|---|---|
committer | Nikola Smiljanic <popizdeh@gmail.com> | 2014-05-30 01:28:28 +0000 |
commit | e27de09de83d902078eff15f1018494b53ac119c (patch) | |
tree | 8753a4e6339755e7ab9374ea4538e9787e5af147 /clang/test/SemaCXX/cxx0x-initializer-constructor.cpp | |
parent | cc28bc1816460cb9225e89a213d608dbfd0e8735 (diff) | |
download | bcm5719-llvm-e27de09de83d902078eff15f1018494b53ac119c.tar.gz bcm5719-llvm-e27de09de83d902078eff15f1018494b53ac119c.zip |
PR11410 - Confusing diagnostic when trailing array element tries to call deleted default constructor
llvm-svn: 209869
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-initializer-constructor.cpp')
-rw-r--r-- | clang/test/SemaCXX/cxx0x-initializer-constructor.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp b/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp index 75b2341f3b6..47afead305c 100644 --- a/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp +++ b/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp @@ -375,3 +375,14 @@ namespace PR19729 { }; B *p = new ({123}) B; } + +namespace PR11410 { + struct A { + A() = delete; // expected-note {{deleted here}} + A(int); + }; + + A a[3] = { + {1}, {2} + }; // expected-error {{call to deleted constructor}} expected-note {{implicitly default constructed}} +} |