tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wunused-var-32.C
blob8aaf381ffa62787de1bc0108844f6212f16f442f
1 // PR c++/84221
2 // { dg-additional-options -Wunused }
4 template <class T> struct __attribute((unused)) A { };
5 template <> struct A<char> { };
7 void f (void)
9   A<int> a;   // shouldn't warn
10   A<char> ac; // { dg-warning "unused" }
11 }