1 /* { dg-do compile } */
2 /* { dg-additional-options "-Wno-pedantic -Wno-long-long -m64" } */
3 
4 /* varargs, passed as pointer to array of args.   */
5 
6 /* { dg-final { scan-assembler-times ".extern .func dcl_av \\(.param.u32 %\[_a-z0-9\]*, .param.u64 %\[_a-z0-9\]*\\);" 1 } } */
7 void dcl_av (int, ...);
8 
test_1(void)9 void test_1 (void)
10 {
11   dcl_av (1, 1);
12   dcl_av (2, 1, 2);
13   dcl_av (2, 1, 2, 3);
14 }
15 
16 /* { dg-final { scan-assembler-times ".visible .func dfn_av \\(.param.u32 %\[_a-z0-9\]*, .param.u64 %\[_a-z0-9\]*\\)(?:;|\[\r\n\]+\{)" 2 } } */
dfn_av(int a,...)17 void dfn_av (int a, ...)
18 {
19 }
20