summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp')
-rw-r--r--llvm/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp b/llvm/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp
new file mode 100644
index 00000000000..6003a253378
--- /dev/null
+++ b/llvm/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp
@@ -0,0 +1,14 @@
+// RUN: %llvmgxx %s -S
+
+#include <set>
+
+class A {
+public:
+ A();
+private:
+ A(const A&);
+};
+void B()
+{
+ std::set<void *, A> foo;
+}
OpenPOWER on IntegriCloud