Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
unused-result1.C
blob: 1b9ef8af786bfe8f695335ad0cce7d95f48a389f [
file
] [
log
] [
blame
]
// 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" }
};