2013-05-06 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-apply3.c
blob1335d09022a9d6518301591cb77d3ccbf1f202fe
1 /* PR middle-end/12210 */
2 /* Origin: Ossadchy Yury A. <waspcoder@mail.ru> */
4 /* This used to fail on i686 because the argument was not copied
5 to the right location by __builtin_apply after the direct call. */
7 /* { dg-do run } */
10 #define INTEGER_ARG 5
12 extern void abort(void);
14 void foo(int arg)
16 if (arg != INTEGER_ARG)
17 abort();
20 void bar(int arg)
22 foo(arg);
23 __builtin_apply(foo, __builtin_apply_args(), 16);
26 int main(void)
28 bar(INTEGER_ARG);
30 return 0;