Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / access1.C
blob1622e087df82d23f5cf699e7bc327a0a5795e855
1 // { dg-do compile }
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 19 Jan 2002 <nathan@codesourcery.com>
6 // It is legal to specialize a template with a different class-key.
8 template<typename T> class X;
10 template<typename T> struct X<T *>
12   int i;
14 template<> struct X<int>
16   int i;
19 void foo ()
21   X<int *> xip;
22   X<int> xi;
24   xip.i;
25   xi.i;