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