align1.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 28 行
C
28 行
// This was failuring on powerpc-darwin and powerpc-aix as// we were taking the embeded type as the first field decl.// This was PR target/18761. // { dg-do run }union A { double d;};union B { enum E { e }; double d;};struct AlignA { char c; A a;};struct AlignB { char c; B b;};extern "C" void abort ();int main () { if ( __alignof__ (AlignA) != __alignof__ (AlignB)) abort ();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?