| 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 |
}; |