mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 22:50:55 +00:00
Add tests for fixes I committed earlier to the C++ FE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75924 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0167c1d5a
commit
3f2122bea8
14
test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp
Normal file
14
test/FrontendC++/2009-07-16-PrivateCopyConstructor.cpp
Normal file
@ -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;
|
||||
}
|
8
test/FrontendC++/2009-07-16-Using.cpp
Normal file
8
test/FrontendC++/2009-07-16-Using.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
// RUN: %llvmgxx %s -S
|
||||
|
||||
namespace A {
|
||||
typedef int B;
|
||||
}
|
||||
struct B {
|
||||
};
|
||||
using ::A::B;
|
Loading…
Reference in New Issue
Block a user