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