2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20010518-2.c
blobf35d7c6b96d9f062cb7f8926bda99bbb3b3fbfb4
1 /* { dg-do compile } */
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-*-* } } */
8 /* Large static storage. */
10 #include <limits.h>
12 static volatile char chars_1[INT_MAX / 2];
13 static volatile char chars_2[1];
15 int
16 foo (void)
18 chars_1[10] = 'y';
19 chars_2[0] = 'x';