diag0258.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 29 行
C
29 行
#define CHAR_MAX (127)
typedef char T;
struct Q {
int h( int t= (4+(3-7), // missing parenthesis
);
};
struct S {
void f( T t= (CHAR_MAX+1) ); // thinks T is char, warns about truncation
typedef int T;
void g( T t= (CHAR_MAX+1) ); // OK
};
void S::f(T t) // complains that S::f(int) not member
// (it only knows about S::f(char)
{
int i;
i = t;
}
void S::g(T t) //OK
{
int i;
i = t;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?