[llvm-commits] [llvm] r75924 - in /llvm/trunk/test/FrontendC++: 2009-07-16-PrivateCopyConstructor.cpp 2009-07-16-Using.cpp

Rafael Espindola rafael.espindola at gmail.com
Thu Jul 16 06:35:43 PDT 2009


Author: rafael
Date: Thu Jul 16 08:35:42 2009
New Revision: 75924

URL: http://llvm.org/viewvc/llvm-project?rev=75924&view=rev
Log:
Add tests for fixes I committed earlier to the C++ FE.


Added:
    llvm/trunk/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp
    llvm/trunk/test/FrontendC++/2009-07-16-Using.cpp

Added: llvm/trunk/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2009-07-16-PrivateCopyConstructor.cpp?rev=75924&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp (added)
+++ llvm/trunk/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp Thu Jul 16 08:35:42 2009
@@ -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;
+}

Added: llvm/trunk/test/FrontendC++/2009-07-16-Using.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2009-07-16-Using.cpp?rev=75924&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC++/2009-07-16-Using.cpp (added)
+++ llvm/trunk/test/FrontendC++/2009-07-16-Using.cpp Thu Jul 16 08:35:42 2009
@@ -0,0 +1,8 @@
+// RUN: %llvmgxx %s -S
+
+namespace A {
+  typedef int B;
+}
+struct B {
+};
+using ::A::B;





More information about the llvm-commits mailing list