ambig2.c

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

C
12
字号
// { dg-do assemble  }// { dg-options "-Wno-pointer-arith" }// Testcase for ambiguity between cast and parmlist.// This ambiguity accounts for 1 of the r/r conflicts.// Do not compile with -pedantic so that the compiler will accept taking// the sizeof a function type.void f(){  (void)sizeof(int((int)1.2));  (void)sizeof(int((int)));		// { dg-bogus "" } }

⌨️ 快捷键说明

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