Quoting "H.J. Lu" <hjl.to...@gmail.com>:
On Tue, Jun 14, 2011 at 8:27 PM, Joern Rennecke <amyl...@spamcop.net> wrote:
Quoting "H.J. Lu" <hjl.to...@gmail.com>:
Do you have a testcase for i386?
struct args { int i0, i1; };
union args_u { struct args *a; } __attribute__((transparent_union));
union args_u
f (union args_u in)
{
union args_u out;
out.a = in.a + 1;
return out;
}
Do you have a run-time testcase to show failure?
No, I haven't. The assembly output should be simple enough to see
the result at a glance. Or do you need a runtime test to plug it into
a script? I suppose, abandoning conformity for the sake of the test,
a test can be constructed by mixing caller and callee with different
ideas about the type of the return value - either have a declaration
mismatch with separate compilation, or using a function pointer cast.