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" }
}
}