copy5.c

来自「xml大全 可读写调用率很高 xml大全 可读写调用率很高」· C语言 代码 · 共 30 行

C
30
字号
// { dg-options "-O2" }struct BOOL {    int nVal:1, bSet:1;    BOOL (int i) : nVal(i!=0), bSet(1) {}};struct Fill {    void *d;    Fill() : d(0) {}    Fill( const Fill& ) {}};struct SvMetaSlot {    Fill aGroupId;    BOOL a8;    SvMetaSlot() :      a8(1) {}    SvMetaSlot* MakeClone() const;};SvMetaSlot* SvMetaSlot::MakeClone() const { return new SvMetaSlot( *this ); }extern "C" void abort(void);int main(){  SvMetaSlot s; SvMetaSlot s2(s);  if (s.a8.bSet != s2.a8.bSet)    abort ();  return 0;}

⌨️ 快捷键说明

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