aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/typedef7.C
blob: 2d39c90b9ee2221af94905c4b025cd43f0237a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// An intermediate version of the fix for c++/19407 broke this example.

struct A
{
  typedef struct { int i; } S;
};

template <class T>
struct B: public A
{
  template <class U>
  static S f ();
};

template struct B<int>;