URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [unused-result1-Werror.c] - Rev 862
Go to most recent revision | Compare with Previous | Blame | View Log
// PR 40614 // { dg-options "-Werror=unused-result" } class QByteArray { public: QByteArray(const QByteArray &); }; class QString { QByteArray toLocal8Bit() const __attribute__ ((warn_unused_result)); void fooWarnHere() const { toLocal8Bit(); } // { dg-error "ignoring" } };
Go to most recent revision | Compare with Previous | Blame | View Log