Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / stackalign / builtin-apply-3.c
blob37c5209b91cb296430e4ed17c5e122cb987fd77f
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 } */
8 /* { dg-require-effective-target untyped_assembly } */
11 #define INTEGER_ARG 5
13 extern void abort(void);
15 void foo(int arg)
17 if (arg != INTEGER_ARG)
18 abort();
21 void bar(int arg)
23 foo(arg);
24 __builtin_apply(foo, __builtin_apply_args(), 16);
27 int main(void)
29 bar(INTEGER_ARG);
31 return 0;