Commit 72934de7 by Richard Henderson Committed by Richard Henderson

* gcc.c-torture/execute/20000603-1.c: New.

From-SVN: r34379
parent d6c266b2
2000-06-03 Richard Henderson <rth@cygnus.com>
* gcc.c-torture/execute/20000603-1.c: New.
2000-06-02 Zack Weinberg <zack@wolery.cumb.org>
* gcc.dg/noreturn-1.c (foo7, foo8): Revert previous change.
......
struct s1 { double d; };
struct s2 { double d; };
double f(struct s1 *a, struct s2 *b)
{
a->d = 1.0;
return b->d + 1.0;
}
int main()
{
struct s1 a;
a.d = 0.0;
if (f (&a, (struct s2 *)&a) != 2.0)
abort ();
return 0;
}
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