repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-32.C
blob
8aaf381ffa62787de1bc0108844f6212f16f442f
1
// PR c++/84221
2
// { dg-additional-options -Wunused }
3
4
template <class T> struct __attribute((unused)) A { };
5
template <> struct A<char> { };
6
7
void f (void)
8
{
9
A<int> a; // shouldn't warn
10
A<char> ac; // { dg-warning "unused" }
11
}