OSDN Git Service

* g++.dg/other/first-global.C: Add -fpie for all pic targets.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / struct-as-enum1.C
1 // PR c++/163, PR c++/8595
2 // Origin: <martin@loewis.home.cs.tu-berlin.de>, Mark Leone <mleone@pixar.com>
3 // { dg-do compile }
4
5 namespace N
6 {
7     struct A {};        // { dg-error "previous declaration" }
8 }
9
10 typedef enum N::A B;    // { dg-error "enum|invalid type" }