Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/20000113-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 | 04ced10e8804 |
children |
line wrap: on
line source
struct x { unsigned x1:1; unsigned x2:2; unsigned x3:3; }; foobar (int x, int y, int z) { struct x a = {x, y, z}; struct x b = {x, y, z}; struct x *c = &b; c->x3 += (a.x2 - a.x1) * c->x2; if (a.x1 != 1 || c->x3 != 5) abort (); exit (0); } main() { foobar (1, 2, 3); }