OSDN Git Service

* gcc.c-torture/compile/pr11832.c: XFAIL for mips and powerpc-linux,
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / 20010518-2.c
1 /* { dg-do compile } */
2
3 /* This test fails on HC11/HC12 when it is compiled without -mshort because 
4    the array is too large (INT_MAX/2 > 64K).  Force to use 16-bit ints
5    for it.  */
6 /* { dg-options "-w -mshort" { target m6811-*-* m6812-*-* } } */
7
8 /* Large static storage.  */
9
10 #include <limits.h>
11
12 static volatile char chars_1[INT_MAX / 2];
13 static volatile char chars_2[1];
14
15 int
16 foo (void)
17 {
18   chars_1[10] = 'y';
19   chars_2[0] = 'x';
20 }