conpr-2.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 24 行
C
24 行
/* This doesn't work on solaris2 for reasons described in PR 6482. *//* { dg-do run { xfail *-*-solaris2* } } */#include <stdlib.h>class foo_t { int x; static int count;public: foo_t(void) { x=++count; } int get(void) { return x; }};int foo_t::count;extern foo_t foo1, foo2;int main(void) { if ( (foo1.get() != 2) || (foo2.get() != 1) ) abort(); exit(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?