diff options
-rw-r--r-- | test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp | 14 | ||||
-rw-r--r-- | test/FrontendC++/2009-07-16-Using.cpp | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp b/test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp new file mode 100644 index 0000000000..6003a25337 --- /dev/null +++ b/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; +} diff --git a/test/FrontendC++/2009-07-16-Using.cpp b/test/FrontendC++/2009-07-16-Using.cpp new file mode 100644 index 0000000000..1acadf6421 --- /dev/null +++ b/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; |