Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / typedef1.C
blob75b00e0fb2a68c8fcf3d65a06ff25ed07f950b00
1 // { dg-do compile }
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 9 Dec 2001 <nathan@nathan@codesourcery.com>
6 // PR 72
8 template <typename T> struct A
10   typedef T type;
13 template <typename T> struct B
15   typedef int xxx; // { dg-error "" }
16   typedef T xxx; // { dg-error "" }
17   typedef typename A<T>::type xxx; // { dg-error "" }
18   typedef A<int>::type xxx; // { dg-error "" }
21 B<int> good;