aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/vector26.C
blob: 1d7a1e47160df2f550e9d52f1b65a9eb2dfc5791 (plain)
1
2
3
4
5
6
7
8
9
// 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 } } }