PR target/59927
[official-gcc.git] / gcc / testsuite / gcc.target / x86_64 / abi / callabi / vaarg-5a.c
blobfa85677797b82b9d05764ad3b7aba767c8a41dcb
1 /* Test for cross x86_64<->w64 abi va_list calls. */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin" } */
4 /* { dg-additional-sources "vaarg-5b.c" } */
6 extern void __attribute__ ((sysv_abi)) abort (void);
7 extern int fct2 (int, ...);
9 #define SZ_ARGS 1ll,2ll,3ll,4ll,5ll,6ll,7ll,0ll
11 int __attribute__ ((sysv_abi))
12 main()
14 if (fct2 (-1, SZ_ARGS) != 0)
15 abort ();
16 return 0;