URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr17526.c] - Rev 816
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