diff options
Diffstat (limited to 'test/SemaCXX/cxx0x-initializer-constructor.cpp')
-rw-r--r-- | test/SemaCXX/cxx0x-initializer-constructor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/SemaCXX/cxx0x-initializer-constructor.cpp b/test/SemaCXX/cxx0x-initializer-constructor.cpp index 3ea5309..6202bf6 100644 --- a/test/SemaCXX/cxx0x-initializer-constructor.cpp +++ b/test/SemaCXX/cxx0x-initializer-constructor.cpp @@ -142,6 +142,7 @@ namespace objects { one ov2(int); two ov2(F<3>); + // expected-warning@+1 {{braces around scalar initializer}} static_assert(sizeof(ov2({1})) == sizeof(one), "bad overload"); // list -> int ranks as identity static_assert(sizeof(ov2({1, 2, 3})) == sizeof(two), "bad overload"); // list -> F only viable } @@ -214,7 +215,10 @@ namespace PR12092 { namespace PR12117 { struct A { A(int); }; - struct B { B(A); } b{{0}}; + struct B { B(A); } b{{0}}; //FIXME: non-conformant. Temporary fix until standard resolution. + // 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}; } |