pr43662.c (dg-options): Add -maccumulate-outgoing-args.
[gcc.git] / gcc / testsuite / gcc.target / x86_64 / abi / callabi / func-indirect-2a.c
1 /* Test for cross x86_64<->w64 abi standard calls via variable. */
2 /* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */
3 /* { dg-options "-O2 -mabi=ms -std=gnu99 -ffast-math -fno-builtin -maccumulate-outgoing-args" } */
4 /* { dg-additional-sources "func-indirect-2b.c" } */
5
6 extern void __attribute__ ((sysv_abi)) abort (void);
7 typedef int (*func)(void *, char *, char *, short, long long);
8 extern func get_callback (void);
9
10 int __attribute__ ((sysv_abi))
11 main ()
12 {
13 func callme = get_callback ();
14 if (callme (0, 0, 0, 0x1234, 0x1234567890abcdefLL))
15 abort ();
16 return 0;
17 }