wstrict-aliasing-bogus-nested-arrays.c

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

C
10
字号
/* { dg-do compile } *//* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */int foo () {  int buffer[10][10];  int* pi = &buffer[0][0];  /* { dg-bogus "same element type" } */  *pi = 10;  return buffer[0][0];}

⌨️ 快捷键说明

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