(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pr68657-3.c
       1  /* PR c/68657 */
       2  /* { dg-do compile } */
       3  /* { dg-require-effective-target ptr32plus } */
       4  
       5  #pragma GCC diagnostic error "-Wlarger-than=65536"
       6  int a[131072];	/* { dg-error "size of 'a' \[1-9\]\[0-9\]* bytes exceeds maximum object size 65536" } */
       7  int b[1024];	/* { dg-bogus "size" } */
       8  #pragma GCC diagnostic ignored "-Wlarger-than=65536"
       9  int c[131072];	/* { dg-bogus "size" } */
      10  int d[1024];	/* { dg-bogus "size" } */
      11  #pragma GCC diagnostic warning "-Wlarger-than=65536"
      12  int e[131072];	/* { dg-warning "size of 'e' \[1-9\]\[0-9\]* bytes exceeds maximum object size 65536" } */
      13  int f[1024];	/* { dg-bogus "size" } */
      14  /* { dg-prune-output "treated as errors" } */