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

foo1(int x,int y)1 int foo1(int x, int y) { return x + y + 1; }
foo2(int x,int y)2 int foo2(int x, int y) { return x + y + 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(int x,...)5 int foo4(int x, ...) { return x + 4; }
6