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);
+  }
+}