blob: 4d08cf0d43083f0b9a7e0c5fc7bab4fd9f607cf6 [file] [log] [blame]
// PR c++/47461
class C {
public:
template<typename T> bool f(T* m) __attribute__((warn_unused_result));
};
template<typename T> inline bool C::f(T* m) { return true; }
void f(C* pc) { int i; pc->f(&i); } // { dg-warning "ignoring return value" }