xref: /aosp_15_r20/external/stg/test_cases/info_tests/function/variadic_parameter.cc (revision 9e3b08ae94a55201065475453d799e8b1378bea6)

foo1(int x,int y,...)1 int foo1(int x, int y, ...) { return x + y + 1; }
foo2(int x,...)2 int foo2(int x, ...) { return x + 2; }
foo3(int x,int y)3 int foo3(int x, int y) { return x + y + 3; }
4 // GCC omits the ...: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111788
foo4(...)5 int foo4(...) { return 4; }
6