OSDN Git Service

2011-08-19 Andrew Stubbs <ams@codesourcery.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / pr43662.c
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-options "-O2" } */
3
4 void __attribute__ ((ms_abi)) foo (void)
5 {
6 }
7
8 typedef struct _IAVIStreamImpl
9 {
10   int sInfo;
11   int has;
12 } IAVIStreamImpl;
13
14 extern int __attribute__ ((ms_abi)) aso (void *);
15 extern int sre (void *);
16
17 int AVIFILE_OpenCompressor (IAVIStreamImpl *This)
18 {
19   if (This->has != 0)
20     aso (&This->has);
21   sre (&This->sInfo);
22   return 0;
23 }