inline1.c

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

C
9
字号
/* { dg-do compile } *//* { dg-options "-Wall -std=gnu89" } *//* This test is expected to fail with an error for the redefinition of foo.   This violates the constraint of 6.9#3 (no more than one external definition   of an identifier with internal linkage in the same translation unit).  */static inline int foo(void) { return 1; } /* { dg-error "previous definition of" } */static inline int foo(void) { return 0; } /* { dg-error "redefinition of" } */

⌨️ 快捷键说明

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