Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / large-size-array-5.c
blob71ac47374f44823b2b0b46006e0aba801774b20c
1 /* { dg-do compile } */
2 /* { dg-options "-Wno-overflow" } */
4 typedef __SIZE_TYPE__ size_t;
6 extern char a[((size_t)-1 >> 1) + 1]; /* { dg-error "too large" } */
7 extern char b[((size_t)-1 >> 1)];
8 extern int c[(((size_t)-1 >> 1) + 1) / sizeof(int)]; /* { dg-error "too large" } */
9 extern int d[((size_t)-1 >> 1) / sizeof(int)];