* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / attr-used-1.C
blob6754c7ffb5090bb594d4308650187055ffe6badb
1 // Attribute used on a member function or static data member
2 // of a template should cause them to be instantiated along
3 // with the class itself.
5 // { dg-final { scan-assembler "_ZN1AIiE1fEv" } }
6 // { dg-final { scan-assembler "_ZN1AIiE1tE" } }
8 template <class T> struct A
10   void f() __attribute ((used));
11   static T t __attribute ((used));
14 template <class T> void A<T>::f() { }
15 template <class T> T A<T>::t;
17 A<int> a;