20030218-1.c

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

C
25
字号
/* { dg-do compile { target powerpc-*-eabi* } } *//* { dg-options "-mspe=yes" } *//* Test vectors that can interconvert without a cast.  */__ev64_opaque__ opp;int vint   __attribute__((vector_size (8)));short vshort __attribute__((vector_size (8)));float vfloat __attribute__((vector_size (8)));intmain (void){  __ev64_opaque__ george = { 1, 2 }; /* { dg-error "opaque vector types cannot be initialized" } */  opp = vfloat;  vshort = opp;  vfloat = vshort; /* { dg-error "incompatible types in assignment" } */  /* Just because this is a V2SI, it doesn't make it an opaque.  */  vint = vshort; /* { dg-error "incompatible types in assignment" } */  return 0;}

⌨️ 快捷键说明

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