2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 20060125-1.c
blob73bb970a199664ab63209d83052343dc3b606674
1 /* PR rtl-optimization/25703 */
2 /* { dg-do run } */
3 /* { dg-require-effective-target ia32 } */
4 /* { dg-options "-O2 -mtune=i486" } */
6 extern void abort (void);
8 struct a
10 int a;
11 char b,c,d,e;
14 __attribute__ ((noinline))
15 __attribute__ ((regparm(1))) void t(struct a a)
17 if (a.a!=1 || a.b!=1 || a.c!=1)
18 abort();
21 int main()
23 struct a a;
24 a.c=1;
25 a.a=1;
26 a.b=1;
27 t(a);
28 return 0;