pr16155.c

来自「用于进行gcc测试」· C语言 代码 · 共 19 行

C
19
字号
/* { dg-do compile { target powerpc*-*-* } } *//* { dg-require-effective-target powerpc_altivec_ok } *//* { dg-options "-maltivec -ansi" } *//* PR 16155 * Compilation of a simple altivec test program fails if the -ansi flag is * given to gcc, when compiling with -maltivec. */#include <altivec.h>void foo(void){  vector unsigned short a, b;  a = vec_splat(b, 0);}/* { dg-bogus "parse error before \"typeof\"" "-maltivec -mansi" { target powerpc*-*-* } 0 } */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?