Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
);
}