Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/20021006-1.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* PR target/7559 This testcase was miscompiled on x86-64 due to wrong access to the struct members. */ extern void abort(void); struct A { long x; }; struct R { struct A a, b; }; struct R R = { {100}, {200} }; void f(struct R r) { if (r.a.x != R.a.x || r.b.x != R.b.x) abort(); } int main() { f(R); return 0; }