Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
;
};