summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/namespace2.C
blob: a2c10e0536f78855582d5cf6936c11b7f75e7145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR c++/2537 */
/* { dg-do compile } */

// Used to have namespace name/identifier conflict, prior to 3.4.

namespace baz {}
 
namespace foo
 {
   struct bar
   {
     unsigned baz:1;
   };
 }