diag0011.cpp

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C++ 代码 · 共 28 行

CPP
28
字号
void foo( void )
{
    void (*fp)( int, int );
    int(a);
}

struct T {
    double d;
    T(int);
};
int a,b,c[10];

void expr( void )
{
    (int) a, (T)(int) b, c[ sizeof(T) ];
}

void decl( void )
{
    int a, T( int b ), c[ sizeof(T) ];
}

void expr_decl( void )
{
    int(a),T(int(b)),c[sizeof(T)];	/* should match errors for decl()! */
}
/* test is not processed correctly by MS C7.0, MetaWare, Borland, or Zortech */

⌨️ 快捷键说明

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