OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / pr30313.c
1 /* { dg-do compile } */
2
3 static inline void bar(){}
4
5 struct S
6 {
7 #if __INT_MAX__ == 32767
8   signed int i: 16;
9 #elif __INT_MAX__ == 2147483647
10   signed int i: 32;
11 #elif __INT_MAX__ == 9223372036854775807
12   signed int i: 64;
13 #else
14 #error Please add support for your target here
15 #endif
16 };
17
18 int main()
19 {
20   struct S x = {32};
21   sizeof(x.i+0);
22   return 0;
23 }