- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
21 lines
288 B
C++
21 lines
288 B
C++
// RUN: %clang_cc1 -fsyntax-only %s
|
|
|
|
// PR4607
|
|
template <class T> struct X {};
|
|
|
|
template <> struct X<char>
|
|
{
|
|
static char* g();
|
|
};
|
|
|
|
template <class T> struct X2 {};
|
|
|
|
template <class U>
|
|
struct X2<U*> {
|
|
static void f() {
|
|
X<U>::g();
|
|
}
|
|
};
|
|
|
|
void a(char *a, char *b) {X2<char*>::f();}
|