freebsd-nq/test/CodeGenCXX/debug-info.cpp

21 lines
315 B
C++
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -emit-llvm-only -g
2009-11-18 14:59:57 +00:00
template<typename T> struct Identity {
typedef T Type;
};
void f(Identity<int>::Type a) {}
void f(Identity<int> a) {}
void f(int& a) { }
template<typename T> struct A {
A<T> *next;
};
void f(A<int>) { }
2009-12-15 18:49:47 +00:00
struct B { };
void f() {
int B::*a = 0;
void (B::*b)() = 0;
}