1 /* PR tree-optimization/92930 */
2 /* { dg-do compile { target untyped_assembly } } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump "__builtin_apply " "optimized" } } */
5 /* { dg-final { scan-tree-dump "__builtin_apply_args" "optimized" } } */
6
7 void foo (int a, int b, int c, int d, int e, int f, int g);
8
bar(int a,...)9 static void bar (int a, ...)
10 {
11 __builtin_apply (foo, __builtin_apply_args (), 20);
12 }
13
14 int
main()15 main ()
16 {
17 bar (1024, 1025, 1026, 1027, 1028, 1029, 1030);
18 return 0;
19 }
20