Home | History | Annotate | Download | only in tests
      1 #include "valgrind.h"
      2 #include <stdio.h>
      3 
      4 int
      5 main (int argc, char **argv)
      6 {
      7    int x = 0;
      8    x += VALGRIND_PRINTF("Yo ");
      9    x += VALGRIND_PRINTF("Yo ");
     10    x += VALGRIND_PRINTF("Ma\n");
     11    fprintf(stderr, "%d\n", x);
     12    x  = VALGRIND_PRINTF_BACKTRACE("Backtrace line one\nLine two:\n");
     13    fprintf(stderr, "%d\n", x);
     14    return 0;
     15 }
     16