2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / static11.C
bloba3c5bc024217f35093b60609f92b6a7998055811
1 // { dg-do assemble  }
2 // Origin: Raja R Harinath <harinath@cs.umn.edu>
4 enum ReservedName {
5   rIGNORE,
6   rINCLUDE
7 };
9 void maybeStatusKeyword()
11   static const ReservedName statusKeywords[] = { rINCLUDE, rIGNORE };
12   for (int i = 0; i < 2; i++) {
13     ReservedName r = statusKeywords[i];
14   }