Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.oliva / typeof1.C
blob197abe6a5ed2fd2daa10ced4be15ceb22638b207
1 // { dg-do assemble }
3 // Copyright (C) 1999 Free Software Foundation
5 // by Alexandre Oliva <oliva@dcc.unicamp.br>
7 struct B {
8   int i;
9 };
11 template <class T> void foo(T b) {
12   b.T::i; // ok
13   // b.__typeof__(b)::i; // parse error, should this be accepted?
14   typedef T t1;
15   b.t1::i; // ok
16   typedef __typeof__(b) t2;
19 template void foo(B); // not needed for the crash