pr16155.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 19 行

C
19 行
字号
/* { dg-do compile { target powerpc*-*-* } } *//* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } *//* { 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 + -
显示快捷键?