Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if11.C
blob: 56922bb19ea6dde5b674bdc7994378ff48bd722d [
file
] [
log
] [
blame
]
// Test that discarded statements differ from unevaluated operands in some
// ways.
// { dg-do compile { target c++17 } }
struct
A
{
int
i
;
};
int
main
()
{
if
constexpr
(
true
)
;
else
{
[]{}();
A
::
i
;
// { dg-error "non-static" }
}
}