OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / nrv3.c
index 2b0147d..c28b8ec 100644 (file)
@@ -3,7 +3,12 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fdump-tree-optimized" } */
 
-typedef struct { int x; void *y; } S;
+#ifdef __SPU__
+/* SPU returns aggregates up to 1172 bytes in registers.  */
+typedef struct { int x[300]; void *y; } S;
+#else
+typedef struct { int x[20]; void *y; } S;
+#endif
 typedef struct { int a; S b; } T;
 S nrv_candidate (void);
 void use_result (S, int);