Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / warn / unused-result1.C
blob1b9ef8af786bfe8f695335ad0cce7d95f48a389f
1 // PR c++/27371
3 class QByteArray {
4 public:
5   QByteArray(const QByteArray &);
6 };
7 class QString {
8   QByteArray toLocal8Bit() const __attribute__ ((warn_unused_result));
9   void fooWarnHere() const { toLocal8Bit(); } // { dg-warning "ignoring" }