URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr17526.c] - Rev 754
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run } */ /* { dg-options "-fno-pcc-struct-return" { target i?86-*-* } } */ void abort(void); typedef struct { int i; } A; A __attribute__((noinline)) foo(void) { A a = { -1 }; return a; } void __attribute__((noinline)) bar(A *p) { *p = foo(); } int main(void) { A a; bar(&a); if (a.i != -1) abort(); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log