Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / typedef8.C
blob2d3507acc98f9481c849db9a273d449dca364a22
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 17 Aug 2000 <nathan@codesourcery.com>
6 // bug 39. We'd generated bogus errors when using a typedef of a nested class.
8 struct X1
10   typedef struct {
11   } MyStruct1;
12   typedef struct M2 {
13   } MyStruct2;
16 X1::MyStruct1 foo()
18 X1::MyStruct1 m1;
19 return m1;
22 X1::MyStruct2 baz()
24 X1::MyStruct2 m1;
25 return m1;