2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef1.C
blob03257571d1d070ffd3f555bf52f483d9203ca80e
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;
16   typedef T xxx;
17   typedef typename A<T>::type xxx;
18   typedef A<int>::type xxx;
21 B<int> good;