* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / vector26.C
blob1d7a1e47160df2f550e9d52f1b65a9eb2dfc5791
1 // PR c++/59633
2 // In C++98, the definition of bar is an error.  In C++11, bar implicitly
3 // gets internal linkage.
4 // { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
6 typedef enum { e } T __attribute__((vector_size(8)));
7 static void foo(T t) {}
8 void bar (T t) {}               // { dg-error "no linkage" "" { target { ! c++11 } } }
9 // { dg-final { scan-assembler-not "globl\[ \t]*_Z3bar" { target c++11 } } }