Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-result-1.C
blob: 4d08cf0d43083f0b9a7e0c5fc7bab4fd9f607cf6 [
file
] [
log
] [
blame
]
// PR c++/47461
class
C
{
public
:
template
<
typename
T
>
bool
f
(
T
*
m
)
__attribute__
((
warn_unused_result
));
};
template
<
typename
T
>
inline
bool
C
::
f
(
T
*
m
)
{
return
true
;
}
void
f
(
C
*
pc
)
{
int
i
;
pc
->
f
(&
i
);
}
// { dg-warning "ignoring return value" }