diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-02 18:48:07 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-02 18:48:07 +0000 |
commit | 2366cd5d0400a99dc8c220709510733691738ef6 (patch) | |
tree | d0172ee7377b18429bd866a2e5025036e95a0de3 /test/SemaCXX/copy-constructor-error.cpp | |
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
Diffstat (limited to 'test/SemaCXX/copy-constructor-error.cpp')
-rw-r--r-- | test/SemaCXX/copy-constructor-error.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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); + } +} |