Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wignored-qualifiers1.C
blob: 5be61a6f394e58ab68d20417771d5d013330b060 [
file
] [
log
] [
blame
]
// PR c++/82219
// { dg-additional-options "-Wall -Wextra" }
struct
A
{
template
<
typename
T
>
T foo
(
T
*)
const
{
return
static_cast
<
T
>(
0
);
}
void
bar
()
const
{
foo
(&
i
);
}
int
i
;
};