aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/partial-spec-instantiate.cpp
blob: 8d1ae238977c5a64029e969274a08f0a3220216a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: clang-cc -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();}