summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template12.C
blob: d26dfbd75d85b1ae7cfa3366ca1865a3842de20e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// Testcase for 'this is a type' syntax.

struct B {
  typedef int A;
};

template <class T> struct Y {
  void f() {
    typename T::A *d;
  }
};

template class Y<B>;