* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / sancov / basic2.c
blobac2ec785091553d127e606ad2194dd451e7848f9
1 /* Basic test on number of inserted callbacks. */
2 /* { dg-do compile } */
3 /* { dg-options "-fsanitize-coverage=trace-pc -fdump-tree-optimized" } */
5 void foo(int *a, int *b, int *c, int *d)
7 *a = 1;
8 if (*b)
9 *c = 2;
10 else
11 *d = 3;
14 /* { dg-final { scan-tree-dump-times "__builtin___sanitizer_cov_trace_pc \\(\\)" 4 "optimized" } } */