Add tests for fixes I committed earlier to the C++ FE.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 16 Jul 2009 13:35:42 +0000 (13:35 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 16 Jul 2009 13:35:42 +0000 (13:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75924 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp [new file with mode: 0644]
test/FrontendC++/2009-07-16-Using.cpp [new file with mode: 0644]

diff --git a/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp b/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp
new file mode 100644 (file)
index 0000000..6003a25
--- /dev/null
@@ -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;
+}
diff --git a/test/FrontendC++/2009-07-16-Using.cpp b/test/FrontendC++/2009-07-16-Using.cpp
new file mode 100644 (file)
index 0000000..1acadf6
--- /dev/null
@@ -0,0 +1,8 @@
+// RUN: %llvmgxx %s -S
+
+namespace A {
+  typedef int B;
+}
+struct B {
+};
+using ::A::B;