Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-overflow2.C
blob: bd2e6875a94f192792c99410725d924829c6ae37 [
file
] [
log
] [
blame
]
// PR c++/47504
// { dg-do compile { target c++11 } }
char
constexpr
sub
(
char
arg
)
{
return
char
(
arg
-
char
(
1
));
}
int
main
()
{
static
char
constexpr
m
=
sub
(-
1
);
}