gcc/testsuite/g++.old-deja/g++.oliva/partspec1.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 1999 Free Software Foundation |
| 4 | |
| 5 | // by Alexandre Oliva <[email protected]> |
| 6 | // simplified from bug report by Andrey Slepuhin <[email protected]> |
| 7 | |
| 8 | template <typename A, int* P> struct X; |
| 9 | |
| 10 | int a; |
| 11 | |
| 12 | template <typename A> |
| 13 | struct X<A,&a> {}; |
| 14 | |
| 15 | int b; |
| 16 | |
| 17 | template <typename A> |
| 18 | struct X<A,&b> {}; |
| 19 | |
| 20 | X<int,&a> x; |