//#Safe /* Example for a variadic function that is not used. 2018-10-08 DD */ #include int add_nums(int count, ...) { int result = 0; va_list args; va_start(args, count); for (int i = 0; i < count; ++i) { result += va_arg(args, int); } va_end(args); return result; } int another_fun(void) { int result; result = add_nums(5, 1, 2, 3, 4, 5); //@assert result == 15; } int main(void) { int result; result = 15; //@assert result == 15; }