blob: 37506ffa9e20b8aefe7acb396ebb2e5e27727ae6 [file] [log] [blame]
// PR c++/99362
// { dg-do compile { target c++2a } }
struct S {
[[nodiscard]] S() {}
S(int) {}
};
int main()
{
S s;
S(); // { dg-warning "ignoring return value" }
(void)(S());
S t = 1;
S(1);
(void)(S(1));
}