]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.old-deja/g++.pt/pointer1.C
g++-dg.exp (g++-dg-test): Add "repo" option.
[thirdparty/gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / pointer1.C
1 // { dg-do assemble }
2
3 template <class T>
4 struct S1
5 {
6 };
7
8 template <class T>
9 struct S2
10 {
11 typedef T* pointer_t;
12 };
13
14 int f(S2<S1<int> >::pointer_t p1, S2<S1<int> >::pointer_t p2)
15 {
16 return (int) (p1 - p2);
17 }