From: Douglas Gregor Date: Tue, 2 Mar 2010 18:48:07 +0000 (+0000) Subject: Add test case from PR6064, which now works X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2366cd5d0400a99dc8c220709510733691738ef6;p=clang Add test case from PR6064, which now works git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97575 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/copy-constructor-error.cpp b/test/SemaCXX/copy-constructor-error.cpp index 9cae77504b..9809bfc84b 100644 --- a/test/SemaCXX/copy-constructor-error.cpp +++ b/test/SemaCXX/copy-constructor-error.cpp @@ -10,3 +10,16 @@ void g() { S a( f() ); } +namespace PR6064 { + struct A { + A() { } + inline A(A&, int); + }; + + A::A(A&, int = 0) { } + + void f() { + A const a; + A b(a); + } +}