summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/unused-result1.C
blob: 466c99e7d97b92620e5b7e3eae729e806d26c24b (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/27371

class QByteArray {
public:
  QByteArray(const QByteArray &);
};
class QString {
  QByteArray toLocal8Bit() const __attribute__ ((warn_unused_result));
  void fooWarnHere() const { toLocal8Bit(); } // { dg-warning "ignoring" "" { xfail *-*-* } }
};