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:
Rafael Espindola 2009-07-16 13:35:42 +00:00
parent e0167c1d5a
commit 3f2122bea8
2 changed files with 22 additions and 0 deletions

View 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;
}

View File

@ -0,0 +1,8 @@
// RUN: %llvmgxx %s -S
namespace A {
typedef int B;
}
struct B {
};
using ::A::B;