gcc/testsuite/g++.dg/ext/vector26.C
raw| 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 } } } */ |
| 5 | |
| 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 } } } |