Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-32.C
blob: 8aaf381ffa62787de1bc0108844f6212f16f442f [
file
] [
log
] [
blame
]
// PR c++/84221
// { dg-additional-options -Wunused }
template
<
class
T
>
struct
__attribute
((
unused
))
A
{
};
template
<>
struct
A
<char>
{
};
void
f
(
void
)
{
A
<int>
a
;
// shouldn't warn
A
<char>
ac
;
// { dg-warning "unused" }
}