005-printf-int.c (306B)
1 /* printf with %d — exercises va_arg int-pull. With our hand-written 2 * tcc-boot2 smoke, this prints "got " then segfaults; this fixture 3 * pins the failure for red-green TDD on cc.scm+libc varargs. */ 4 extern int printf (char const *fmt, ...); 5 6 int 7 main (void) 8 { 9 printf ("got %d\n", 42); 10 return 0; 11 }