summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/namespace4.C
blob: 2bee8dda85860fd783a1a15205cd828bb5e390ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR c++/4652 */
/* { dg-do compile } */
/* Another conflict between namespace IDs and other things. */

namespace A { }

class B {

   struct {
      int x;
   } A;

};

int main() {
   B b;
   return 0;
}