1 2 3 4 5 6
// { dg-do compile } static __typeof 0 a __attribute__ ((__weakref__ (""))); template <typename> class A { static __thread int b; };