PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / nvptx / abi-vararg-1.c
blob7e56b88d21a5c762cd223a98f8324bd801efb4b9
1 /* { dg-do compile } */
2 /* { dg-additional-options "-Wno-pedantic -Wno-long-long -m64" } */
4 /* varargs, passed as pointer to array of args. */
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, ...);
9 void test_1 (void)
11 dcl_av (1, 1);
12 dcl_av (2, 1, 2);
13 dcl_av (2, 1, 2, 3);
16 /* { dg-final { scan-assembler-times ".visible .func dfn_av \\(.param.u32 %\[_a-z0-9\]*, .param.u64 %\[_a-z0-9\]*\\)(?:;|\[\r\n\]+\{)" 2 } } */
17 void dfn_av (int a, ...)