diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-22 22:17:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-22 22:17:25 +0000 |
commit | 90f9382b3e97afa55e6aaaa4ab31c7473a8c7bb9 (patch) | |
tree | c332ccc4b54b3b5cc4a878b951f352fc064ac022 /test/SemaCXX/copy-constructor-error.cpp | |
parent | 38ac4f504bf8ed514520b5a82be538bdb0860687 (diff) |
Switch Sema::AddCXXDirectInitializerToDecl over to InitializationSequence
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/copy-constructor-error.cpp')
-rw-r--r-- | test/SemaCXX/copy-constructor-error.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/SemaCXX/copy-constructor-error.cpp b/test/SemaCXX/copy-constructor-error.cpp index bdf635d02f..9cae77504b 100644 --- a/test/SemaCXX/copy-constructor-error.cpp +++ b/test/SemaCXX/copy-constructor-error.cpp @@ -1,13 +1,12 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -struct S { // expected-note {{candidate function}} - S (S); // expected-error {{copy constructor must pass its first argument by reference}} \\ - // expected-note {{candidate function}} +struct S { + S (S); // expected-error {{copy constructor must pass its first argument by reference}} }; S f(); void g() { - S a( f() ); // expected-error {{call to constructor of 'a' is ambiguous}} + S a( f() ); } |