Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* Basic test on number of inserted callbacks. */ | 1 /* Basic test on number of inserted callbacks. */ |
2 /* { dg-do compile } */ | 2 /* { dg-do compile } */ |
3 /* { dg-options "-fsanitize-coverage=trace-pc" } */ | 3 /* { dg-options "-fsanitize-coverage=trace-pc -fdump-tree-optimized" } */ |
4 | |
5 void notailcall (); | |
6 | 4 |
7 void foo(int *a, int *b, int *c, int *d) | 5 void foo(int *a, int *b, int *c, int *d) |
8 { | 6 { |
9 *a = 1; | 7 *a = 1; |
10 if (*b) | 8 if (*b) |
11 *c = 2; | 9 *c = 2; |
12 else | 10 else |
13 *d = 3; | 11 *d = 3; |
14 notailcall (); | |
15 } | 12 } |
16 | 13 |
17 /* { dg-final { scan-assembler-times "call» __sanitizer_cov_trace_pc" 4 } } */ | 14 /* { dg-final { scan-tree-dump-times "__builtin___sanitizer_cov_trace_pc \\(\\)" 4 "optimized" } } */ |
LEFT | RIGHT |