summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/template2.C
blob: c88293e4330d4ea4eeff89d9d8cb406c7b9d930c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
//Inheritance from templates which are namespace members
namespace foo {

  template <class T>
  struct x {
    x(){}
  };

}

class y : public foo::x<int> {};

y r;