align68k-2.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 46 行
C
46 行
// APPLE LOCAL file test 68k alignment// Radar 3313261: Positive C++ test case// Origin: Matt Austern <austern@apple.com>// { dg-do run }#ifdef __LP64__/* mac68k align not going to be supported for 64-bit, so skip entirely. */int main () { return 0; }#else#pragma options align=mac68ktypedef struct PMR { double x; double y;}PMR;#pragma options align=resetstatic void GetDouble(double *doubleP){ *doubleP = 1.;}static void GetPMR(PMR *p){ GetDouble(&p->x); GetDouble(&p->y);}int main(void){ PMR tmp; bool ok = true; tmp.x = tmp.y = 0; ok = ok && tmp.x == 0.0 && tmp.y == 0.0; GetPMR(&tmp); ok = ok && tmp.x == 1.0 && tmp.y == 1.0; return !ok;}#endif /* __LP64__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?