blob: 56022c3157a9341f09d87177aeead6b651c4bb06 [file] [log] [blame]
// { dg-do compile { target c++11 } }
struct [[nodiscard]] A { }; // { dg-message "" }
A f(); // { dg-message "" }
int main()
{
f(); // { dg-warning "Wunused-result" }
}