From 5618d808e0e8dcdd160a4d64a861316558abf9a0 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 16 Jul 2009 13:35:42 +0000 Subject: [PATCH] Add tests for fixes I committed earlier to the C++ FE. llvm-svn: 75924 --- .../2009-07-16-PrivateCopyConstructor.cpp | 14 ++++++++++++++ llvm/test/FrontendC++/2009-07-16-Using.cpp | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 llvm/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp create mode 100644 llvm/test/FrontendC++/2009-07-16-Using.cpp 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 000000000000..6003a2533788 --- /dev/null +++ b/llvm/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp @@ -0,0 +1,14 @@ +// RUN: %llvmgxx %s -S + +#include + +class A { +public: + A(); +private: + A(const A&); +}; +void B() +{ + std::set foo; +} diff --git a/llvm/test/FrontendC++/2009-07-16-Using.cpp b/llvm/test/FrontendC++/2009-07-16-Using.cpp new file mode 100644 index 000000000000..1acadf642122 --- /dev/null +++ b/llvm/test/FrontendC++/2009-07-16-Using.cpp @@ -0,0 +1,8 @@ +// RUN: %llvmgxx %s -S + +namespace A { + typedef int B; +} +struct B { +}; +using ::A::B;