Teach TreeTransform how to transform a pack expansion type into
[clang.git] / test / CodeGenCXX / debug-info.cpp
blob71c8603a9faa4778872798d466bcf6da33040b30
1 // RUN: %clang_cc1 -emit-llvm-only -g %s
2 template<typename T> struct Identity {
3 typedef T Type;
4 };
6 void f(Identity<int>::Type a) {}
7 void f(Identity<int> a) {}
8 void f(int& a) { }
10 template<typename T> struct A {
11 A<T> *next;
13 void f(A<int>) { }
15 struct B { };
17 void f() {
18 int B::*a = 0;
19 void (B::*b)() = 0;
22 namespace EmptyNameCrash {
23 struct A { A(); };
24 typedef struct { A x; } B;
25 B x;
28 // PR4890
29 namespace PR4890 {
30 struct X {
31 ~X();
34 X::~X() { }
37 namespace VirtualDtor {
38 struct Y {
39 virtual ~Y();
42 Y::~Y() { }
45 namespace VirtualBase {
46 struct A { };
47 struct B : virtual A { };
49 void f() {
50 B b;
54 void foo() {
55 const wchar_t c = L'x';
56 wchar_t d = c;