nogen01.c

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

C
39
字号
#if defined( M_I86 ) || defined( MI386 )

#include "fail.h"

#include <fstream.h>
#include <iostream.h>

struct tryit {
  ifstream fin;
  tryit();
  ~tryit();
};

int got_here;

tryit::tryit() {
    ++got_here;
}

tryit::~tryit() {
    ++got_here;
}

int main() {
    {
    tryit xx;
    }
    if( got_here != 2 ) fail(__LINE__);
    _PASS;
}

#else

#include "fail.h"

ALWAYS_PASS

#endif

⌨️ 快捷键说明

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