annotate gcc/testsuite/c-c++-common/pr68657-3.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR c/68657 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-require-effective-target ptr32plus } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 #pragma GCC diagnostic error "-Wlarger-than=65536"
kono
parents:
diff changeset
6 int a[131072]; /* { dg-error "size of 'a' is \[1-9]\[0-9]* bytes" } */
kono
parents:
diff changeset
7 int b[1024]; /* { dg-bogus "size of 'b' is \[1-9]\[0-9]* bytes" } */
kono
parents:
diff changeset
8 #pragma GCC diagnostic ignored "-Wlarger-than=65536"
kono
parents:
diff changeset
9 int c[131072]; /* { dg-bogus "size of 'c' is \[1-9]\[0-9]* bytes" } */
kono
parents:
diff changeset
10 int d[1024]; /* { dg-bogus "size of 'd' is \[1-9]\[0-9]* bytes" } */
kono
parents:
diff changeset
11 #pragma GCC diagnostic warning "-Wlarger-than=65536"
kono
parents:
diff changeset
12 int e[131072]; /* { dg-warning "size of 'e' is \[1-9]\[0-9]* bytes" } */
kono
parents:
diff changeset
13 int f[1024]; /* { dg-bogus "size of 'f' is \[1-9]\[0-9]* bytes" } */
kono
parents:
diff changeset
14 /* { dg-prune-output "treated as errors" } */