pr17112-1.c

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

C
34
字号
/* PR middle-end/17112 *//* { dg-do run } *//* { dg-require-effective-target int32plus } *//* { dg-options "-O2" } */extern void abort(void);typedef struct {  int int24:24  __attribute__ ((packed)); /* { dg-warning "attribute ignored" "" { target { default_packed && { ! pcc_bitfield_type_matters } } } } */} myint24;myint24 x[3] = {  0x123456,  0x789abc,  0xdef012};myint24 y[3];  // starts out as zerosvoid foo(){  y[1] = x[1];}int main(){  foo();  if (y[0].int24 != 0 || y[2].int24 != 0)    abort();  return 0;}

⌨️ 快捷键说明

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