aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-local-class.cpp
blob: 5cb63b49ee9aeca7f27314147980f1fc9625d821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -verify %s
template<typename T>
void f0() {
  struct X;
  typedef struct Y {
    T (X::* f1())(int) { return 0; }
  } Y2;

  Y2 y = Y();
}

template void f0<int>();