summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/ns12.C
blob: 76e18724334f8a0073ddb77e2ed6a2e32317d62e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do run  }
namespace {
  int i = 10;
  enum fish { one = 1, two = 2, red = 3, blue = 4 };
}
extern "C" int printf (const char *, ...);
int main(void)
{
  if (i != 10) {
    return 1;
  }
  if (one != 1) {
    return 2;
  }
}