OSDN Git Service

1b9ef8af786bfe8f695335ad0cce7d95f48a389f
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / unused-result1.C
1 // PR c++/27371
2
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" }
10 };