aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/copy-constructor-error.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-02 18:48:07 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-02 18:48:07 +0000
commit2366cd5d0400a99dc8c220709510733691738ef6 (patch)
treed0172ee7377b18429bd866a2e5025036e95a0de3 /test/SemaCXX/copy-constructor-error.cpp
parent9b9edd619a7e616d3287435cb5a3f9b1aea648e8 (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.cpp13
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);
+ }
+}