OSDN Git Service

2010-02-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / torture / pr37343.C
1 /* { dg-do compile } */
2 typedef enum RW { rwBitmapGrey, rwBitmapGrey16 } RW;
3 void FindDepth(RW);
4 void ParseDumpBitmap(RW kind, int maxfiles) 
5 {
6     static const RW normalTypes[] = { };
7     const RW *bitmapTypes;
8     int i;
9     switch (kind) {
10         case rwBitmapGrey:
11         case rwBitmapGrey16:
12             bitmapTypes = &kind;
13             break;
14         default:
15             bitmapTypes = normalTypes;
16     }
17     for (i = 0; i < maxfiles; i++)
18         FindDepth(bitmapTypes[i]);
19 }