diff options
author | Larisse Voufo <lvoufo@google.com> | 2015-01-27 18:47:05 +0000 |
---|---|---|
committer | Larisse Voufo <lvoufo@google.com> | 2015-01-27 18:47:05 +0000 |
commit | 19d08672844ee7558910d9880555b111fc3c90b3 (patch) | |
tree | 2a0eb5add4adbe1b8b7eb8090c51e675c2b8a5f9 /clang/test/SemaCXX/cxx0x-initializer-constructor.cpp | |
parent | ba1b6a16c444690ac2ba9513536a3fc2f1822406 (diff) | |
download | bcm5719-llvm-19d08672844ee7558910d9880555b111fc3c90b3.tar.gz bcm5719-llvm-19d08672844ee7558910d9880555b111fc3c90b3.zip |
Implement the remaining portion of DR1467 from r227022. I may have overlooked a few things, but this implementation comes straight from the DR resolution itself.
llvm-svn: 227224
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-initializer-constructor.cpp')
-rw-r--r-- | clang/test/SemaCXX/cxx0x-initializer-constructor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp b/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp index 3ea53095d4e..b481865d844 100644 --- a/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp +++ b/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp @@ -214,7 +214,9 @@ namespace PR12092 { namespace PR12117 { struct A { A(int); }; - struct B { B(A); } b{{0}}; + struct B { B(A); } b{{0}}; // expected-error {{call to constructor of 'struct B' is ambiguous}} \ + // expected-note 2{{candidate is the implicit}} \ + // expected-note {{candidate constructor}} struct C { C(int); } c{0}; } |