2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / other / enum1.C
blobaa5c976acccf7666b274ef09b8b26e8907455e87
1 // PR c++/6037
2 // This testcase ICEd because start_enum expected pushtag to insert
3 // the tag always into current binding level.
5 struct A
7   ~A () { }
8 };
10 struct B
12   void foo ()
13   {
14     switch (0) { default: ; }
15     A a;
16     enum C { };
17     (void) a;
18   }