Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / pr81530.C
blobe21724686c4ae11c7aa23628d10b3af0cf0ddfe1
1 /* PR sanitizer/81530 */
2 /* { dg-do compile } */
3 /* { dg-options "-fsanitize=undefined" } */
5 int a[(long) 4e20]; /* { dg-error "overflow in constant expression" } */
6 /* { dg-error "size of array .a. is too large" "" { target *-*-* } .-1 } */