Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-overflow3.C
blob: 61766257e39fc0a26db4110ed9fe253b7ed70a29 [
file
] [
log
] [
blame
]
// PR c++/98332
// { dg-do compile { target c++11 } }
#include
<limits.h>
struct
S
{
int
a
=
INT_MAX
+
1
;
};
// { dg-warning "overflow" }
struct
{
S b
[
2
][
1
][
1
][
1
];
}
c
;