Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;