900404_02.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 26 行

C
26
字号
// { dg-do assemble  }// g++ 1.37.1 bug 900404_02// g++ fails to treat multicharacter literals as type "int" as required by// section 2.5.2 of the C++ Reference Manual.// The result is that the following program will exit with a nonzero// exit status.// keywords: character literals, multi-character literals, int typeint exit_status = 0;void function0 (int i)		// function that should be called{  i = i;}void function0 (char c)		// function that is actually called{  c = c;  exit_status++;}int main () { function0 ('abcd'); return exit_status; }		// { dg-warning "" } 

⌨️ 快捷键说明

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