* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / attrib47.C
blob22f49084bcc64189e49feb8fbd88415ccd508b3d
1 // { dg-do compile }
2 // { dg-options "-O2" }
4 class A
6  public:
7   template <class T>
8   T foo(T a) __attribute__ ((noinline));
9 };
11 template <class T>
12   T A::foo(T a)
13   {
14     return a+1;
15   }
17 int bar(A a) {
18   return a.foo(1);
21 // { dg-final { scan-assembler "_ZN1A3fooIiEET_S1_" } }