summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-overflow3.C
blob: 61766257e39fc0a26db4110ed9fe253b7ed70a29 (plain)
1
2
3
4
5
6
7
// 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;