summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/extern_template-3.C
blob: 1b7ad0e01982d5b41877a2f3d6d4bc5588ca2c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/37256
// { dg-options "-O" }

template <typename T_>
struct B
{
  T_ f();
};

extern template class B<int>;

void f()
{
  B<int> t;
  t.f();
}