Merge from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / parse / unnamed1.C
blobf5972f11b6a7cdc5d6780e568bdfc39b2827f640
1 // 9.4.2/4: Unnamed classes and classes contained directly or indirectly
2 // within unnamed classes shall not contain static data members.
4 typedef struct {                // { dg-message "unnamed" }
5   static int i;                 // { dg-error "static data member" }
6 } A;