summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-overflow2.C
blob: 5d5749ce2c3af6f7c435cb5bd798a67baa5f7a00 (plain)
1
2
3
4
5
6
7
8
// PR c++/47504
// { dg-options -std=c++0x }

char constexpr sub(char arg)
{ return char(arg - char(1)); }

int main()
{ static char constexpr m = sub(-1); }