aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lookup/scoped4.C
blob: 2d9d90a17685b900dd41b50ff3b4fefabbfaf8cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR c++/754 */
/* { dg-do compile } */

namespace foo
{
    namespace bar
    {
        enum x {foo
        };
        enum {ubit0       = 0x0001};
      // Used to get a parse error before "::" token.
        int i=foo::bar::ubit0;
    }
}