OSDN Git Service

2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / 20060125-2.c
1 /* PR rtl-optimization/25703 */
2 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-options "-O2 -mtune=pentiumpro" } */
5
6 extern void abort (void);
7
8 struct a
9 {
10         int a;
11         char b,c,d,e;
12 };
13
14 __attribute__ ((noinline))
15 __attribute__ ((regparm(1))) t(struct a a)
16 {
17         if (a.a!=1 || a.b!=1 || a.c!=1)
18                         abort();
19 }
20
21 int main()
22 {
23         struct a a;
24         a.c=1;
25         a.a=1;
26         a.b=1;
27         t(a);
28         return 0;
29 }
30