Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-volatile3.C
blob: 5c1e865e0acca326643c4b4b8a357cd30767a710 [
file
] [
log
] [
blame
]
// PR c++/80456
// { dg-do compile { target c++11 } }
struct
A
{
static
constexpr
bool
test
()
noexcept
{
return
true
;
}
void
f
()
volatile
{
constexpr
bool
b
=
test
();
}
};
void
g
()
{
A a
;
a
.
f
();
}