diff options
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-initializer-references.cpp')
-rw-r--r-- | clang/test/SemaCXX/cxx0x-initializer-references.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/cxx0x-initializer-references.cpp b/clang/test/SemaCXX/cxx0x-initializer-references.cpp index d1a9ed30076..dda68a3ec94 100644 --- a/clang/test/SemaCXX/cxx0x-initializer-references.cpp +++ b/clang/test/SemaCXX/cxx0x-initializer-references.cpp @@ -105,12 +105,13 @@ namespace inner_init { B b2 { { 0 } }; B b3 { { { 0 } } }; // expected-warning {{braces around scalar init}} - struct C { C(int); }; + struct C { C(int); }; // expected-note 2{{candidate constructor (the implicit}} \ + // expected-note {{candidate constructor not viable: cannot convert initializer list argument to 'int'}} struct D { C &&r; }; D d1 { 0 }; // ok, 0 implicitly converts to C D d2 { { 0 } }; // ok, { 0 } calls C(0) D d3 { { { 0 } } }; // ok, { { 0 } } calls C({ 0 }) - D d4 { { { { 0 } } } }; // expected-warning {{braces around scalar init}} + D d4 { { { { 0 } } } }; // expected-error {{no matching constructor for initialization of 'inner_init::C &&'}} struct E { explicit E(int); }; // expected-note 2{{here}} struct F { E &&r; }; |