blob: b866f58a307d5f000ce103fe5758d549d3ad94b5 [file] [log] [blame]
/* Test to ensure small structs are returned in memory too. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
struct a {
long x;
long y;
};
struct a getlibstruct (long aa);
int main() {
struct a rs = getlibstruct(123);
return rs.x;
}
/* Ensure our return value is read from memory. */
/* { dg-final { scan-assembler "l.lwz\\s+r11," } } */