mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25: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:
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;
|
Reference in New Issue
Block a user