Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
nodiscard6.C
blob: d9813fc2b47d1b7709faf491e0a0f66e8997c102 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
[[
nodiscard
]]
A
();
};
void
foo
()
{
A
();
// { dg-warning "ignoring return value" }
}