#include #include void test_vsprintf(int unused, ...) { char buf[10]; volatile int rv; va_list ap; va_start(ap, unused); /* This expression can be folded. */ rv = vsprintf(buf, "%s", ap); va_end(ap); } int main(int argc, char **argv) { test_vsprintf(0, "foo"); return (1); }