Commit 8e32b501 by Alexandre Oliva Committed by Alexandre Oliva

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

From-SVN: r35580
parent 2696f6a4
2000-08-09 Alexandre Oliva <aoliva@redhat.com>
* gcc.c-torture/execute/20000808-1.c: New test.
2000-08-09 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.dg/c90-const-expr-1.c: New test.
......
typedef struct {
long int p_x, p_y;
} Point;
void
bar ()
{
}
void
f (p0, p1, p2, p3, p4, p5)
Point p0, p1, p2, p3, p4, p5;
{
if (p0.p_x != 0 || p0.p_y != 1
|| p1.p_x != -1 || p1.p_y != 0
|| p2.p_x != 1 || p2.p_y != -1
|| p3.p_x != -1 || p3.p_y != 1
|| p4.p_x != 0 || p4.p_y != -1
|| p5.p_x != 1 || p5.p_y != 0)
abort ();
}
void
foo ()
{
Point p0, p1, p2, p3, p4, p5;
bar();
p0.p_x = 0;
p0.p_y = 1;
p1.p_x = -1;
p1.p_y = 0;
p2.p_x = 1;
p2.p_y = -1;
p3.p_x = -1;
p3.p_y = 1;
p4.p_x = 0;
p4.p_y = -1;
p5.p_x = 1;
p5.p_y = 0;
f (p0, p1, p2, p3, p4, p5);
}
int
main()
{
foo();
exit();
}
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