FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / typeof1.C
bloba9c03b3ae60182ea92b1e212f2ff38fecd60a263
1 // Build don't link:
3 struct inttest {
4   int elem[1];
5 };
7 template <class T>
8 void F(T x)
10   typedef __typeof (x.elem[0]) dummy;
11   dummy i = 1;
14 int main() {
15   inttest x;
16   F(x);