[llvm-commits] llvm-gcc aggregate copy

Dale Johannesen dalej at apple.com
Wed May 28 09:34:02 PDT 2008


On May 28, 2008, at 8:31 AM, Duncan Sands wrote:

> A more sophisticated example:
>
> struct A { int a[1024]; };
> struct B { int x; struct A y; };
> union C { struct A x; struct B y; };
> void g(struct A* a, struct A* b) { *a = *b; }
> union C u;
> main(void) { g(&u.x, &u.y.y); }

This one is derived from something in the gcc testsuite IIRC.




More information about the llvm-commits mailing list