OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / pr43662.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O2" } */
4
5 void __attribute__ ((ms_abi)) foo (void)
6 {
7 }
8
9 typedef struct _IAVIStreamImpl
10 {
11   int sInfo;
12   int has;
13 } IAVIStreamImpl;
14
15 extern int __attribute__ ((ms_abi)) aso (void *);
16 extern int sre (void *);
17
18 int AVIFILE_OpenCompressor (IAVIStreamImpl *This)
19 {
20   if (This->has != 0)
21     aso (&This->has);
22   sre (&This->sInfo);
23   return 0;
24 }