FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.oliva / partspec1.C
blob067a6352efede974e8f7559c30796a10ad70a8ad
1 // Build don't link:
3 // Copyright (C) 1999 Free Software Foundation
5 // by Alexandre Oliva <oliva@dcc.unicamp.br>
6 // simplified from bug report by Andrey Slepuhin <pooh@msu.ru>
8 template <typename A, int* P> struct X;
10 int a;
12 template <typename A>
13 struct X<A,&a> {};
15 int b;
17 template <typename A>
18 struct X<A,&b> {};
20 X<int,&a> x;