Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }