Commit ca4cd7ab by Jeffrey A Law Committed by Jeff Law

* gcc.c-torture/execute/20000113-1.c: New test.

From-SVN: r31382
parent efb8436e
Thu Jan 13 02:29:32 2000 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/20000113-1.c: New test.
Wed Jan 12 20:26:58 2000 Jeffrey A Law (law@cygnus.com) Wed Jan 12 20:26:58 2000 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/20000112-1.c: New test. * gcc.c-torture/execute/20000112-1.c: New test.
......
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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment