Commit f75369c8 by Andreas Jaeger Committed by Andreas Jaeger

re PR target/7559 (kdelibs miscompilation)

	PR target/7559
	* gcc.dg/20021006-1.c: New test.

From-SVN: r57867
parent de78f58b
2002-10-06 Andreas Jaeger <aj@suse.de>
PR target/7559
* gcc.dg/20021006-1.c: New test.
2002-10-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/7804
......
/* PR target/7559
This testcase was miscompiled on x86-64 due to wrong access to the struct
members. */
extern void abort();
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;
}
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