| 1 |
// PR c++/60063 |
| 2 |
// { dg-options -Wunused-local-typedefs } |
| 3 |
|
| 4 |
template <class> struct S; |
| 5 |
|
| 6 |
void foo (int i) { |
| 7 |
typedef __attribute__ ((used)) S<int> X; |
| 8 |
} |
| 9 |
|
| 10 |
template <class T> |
| 11 |
void bar (T i) { |
| 12 |
typedef __attribute__ ((used)) S<T> Y; |
| 13 |
} |