summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/x86_64/abi/callabi/vaarg-5a.c
blob: e9912957e7c9b356c1446ab39c4aadef25511c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test for cross x86_64<->w64 abi va_list calls.  */
/* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin" } */
/* { dg-additional-sources "vaarg-5b.c" } */

extern void __attribute__ ((sysv_abi)) abort (void);
extern int fct2 (int, ...);

#define SZ_ARGS	1ll,2ll,3ll,4ll,5ll,6ll,7ll,0ll

int __attribute__ ((sysv_abi))
main()
{
  if (fct2 (-1, SZ_ARGS) != 0)
    abort ();
  return 0;
}