OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / deduct1.C
1 // { dg-do assemble  }
2
3 template<class CoordinateSystem, class MeshTag>
4 struct Mesh { };
5
6 struct RectGrid { };
7
8 struct RectMesh { };
9
10 struct Cartesian { };
11
12 template<class CS>
13 struct Mesh<CS, RectGrid> { };
14
15 template<class CS>
16 struct Mesh<CS, RectMesh> : public Mesh<CS, RectGrid> { };
17
18 template<class CS>
19 void foo(const Mesh<CS, RectGrid> &)
20 {
21 }
22
23 int main()
24 {
25   Mesh<Cartesian, RectMesh> m;
26   foo(m);
27 }