summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static11.C
blob: a3c5bc024217f35093b60609f92b6a7998055811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// Origin: Raja R Harinath <harinath@cs.umn.edu>

enum ReservedName {
  rIGNORE,
  rINCLUDE
};

void maybeStatusKeyword()
{
  static const ReservedName statusKeywords[] = { rINCLUDE, rIGNORE };
  for (int i = 0; i < 2; i++) {
    ReservedName r = statusKeywords[i];
  }
}