OSDN Git Service

2009-02-02 Richard Guenther <rguenther@suse.de>
[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 };