blob: 1d7a1e47160df2f550e9d52f1b65a9eb2dfc5791 [file] [log] [blame]
// PR c++/59633
// In C++98, the definition of bar is an error. In C++11, bar implicitly
// gets internal linkage.
// { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
typedef enum { e } T __attribute__((vector_size(8)));
static void foo(T t) {}
void bar (T t) {} // { dg-error "no linkage" "" { target { ! c++11 } } }
// { dg-final { scan-assembler-not "globl\[ \t]*_Z3bar" { target c++11 } } }