commit | 2366cd5d0400a99dc8c220709510733691738ef6 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue Mar 02 18:48:07 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue Mar 02 18:48:07 2010 +0000 |
tree | d0172ee7377b18429bd866a2e5025036e95a0de3 | |
parent | 9b9edd619a7e616d3287435cb5a3f9b1aea648e8 [diff] |
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 9cae775..9809bfc 100644 --- a/test/SemaCXX/copy-constructor-error.cpp +++ b/test/SemaCXX/copy-constructor-error.cpp
@@ -10,3 +10,16 @@ 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); + } +}