aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr68657-2.c
blob: ef11ad1204b13b98669e43a225d5161a270fb0a3 (plain)
1
2
3
4
5
6
7
8
9
/* PR c/68657 */
/* { dg-do compile } */
/* { dg-options "-Werror=larger-than=65536" } */
/* { dg-require-effective-target ptr32plus } */

int a[131072];	/* { dg-error "size of .a. 524288 bytes exceeds maximum object size 65536" } */
int b[1024];	/* { dg-bogus "size" } */

/* { dg-prune-output "treated as errors" } */