[cfe-commits] r97575 - /cfe/trunk/test/SemaCXX/copy-constructor-error.cpp

Douglas Gregor dgregor at apple.com
Tue Mar 2 10:48:07 PST 2010


Author: dgregor
Date: Tue Mar  2 12:48:07 2010
New Revision: 97575

URL: http://llvm.org/viewvc/llvm-project?rev=97575&view=rev
Log:
Add test case from PR6064, which now works

Modified:
    cfe/trunk/test/SemaCXX/copy-constructor-error.cpp

Modified: cfe/trunk/test/SemaCXX/copy-constructor-error.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/copy-constructor-error.cpp?rev=97575&r1=97574&r2=97575&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/copy-constructor-error.cpp (original)
+++ cfe/trunk/test/SemaCXX/copy-constructor-error.cpp Tue Mar  2 12:48:07 2010
@@ -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);
+  }
+}





More information about the cfe-commits mailing list