summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/net.C
blob: 1f5987d47445c1d8626edc5b093d77a7f31deca3 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Bug: g++ doesn't instantiate function templates in instantiate_type.

template <class T> void fn (T t) { }
template <class T> struct A {
  void (*p)(T);
  A() { p = fn; }
};

A<int> a;