[cfe-commits] r138098 - /cfe/trunk/test/CodeGenCXX/2009-07-16-PrivateCopyConstructor.cpp

Eric Christopher echristo at apple.com
Fri Aug 19 14:51:05 PDT 2011


Author: echristo
Date: Fri Aug 19 16:51:05 2011
New Revision: 138098

URL: http://llvm.org/viewvc/llvm-project?rev=138098&view=rev
Log:
Migrate 2009-07-16-PrivateCopyConstructor.cpp from llvm/test/FrontendC++.

Added:
    cfe/trunk/test/CodeGenCXX/2009-07-16-PrivateCopyConstructor.cpp

Added: cfe/trunk/test/CodeGenCXX/2009-07-16-PrivateCopyConstructor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2009-07-16-PrivateCopyConstructor.cpp?rev=138098&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2009-07-16-PrivateCopyConstructor.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2009-07-16-PrivateCopyConstructor.cpp Fri Aug 19 16:51:05 2011
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -emit-llvm %s -o -
+// XFAIL: darwin
+
+#include <set>
+
+class A {
+public:
+  A();
+private:
+  A(const A&);
+};
+void B()
+{
+  std::set<void *, A> foo;
+}





More information about the cfe-commits mailing list