modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/compile/20010518-2.c (about)

     1  /* { dg-do compile } */
     2  
     3  /* Large static storage.  */
     4  
     5  #include <limits.h>
     6  
     7  static volatile char chars_1[INT_MAX / 2];
     8  static volatile char chars_2[1];
     9  
    10  int
    11  foo (void)
    12  {
    13    chars_1[10] = 'y';
    14    chars_2[0] = 'x';
    15  }