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++98 } }
9 // { dg-final { scan-assembler-not "globl\[ \t]*_Z3bar" { target { ! c++98 } } } }