1 /* Verify that the various .dot output files from the analyzer are readable
4 /* { dg-require-dot "" } */
5 /* { dg-additional-options "-fdump-analyzer-callgraph -fdump-analyzer-exploded-graph -fdump-analyzer-state-purge -fdump-analyzer-supergraph -fdump-analyzer-feasibility" } */
9 int some_call (int i
, char ch
)
14 int *test (int *buf
, int n
, int *out
)
17 int *result
= (int *) malloc (sizeof (int) * n
);
19 /* A loop, to ensure we have phi nodes. */
20 for (i
= 0; i
< n
; i
++)
21 result
[i
] = buf
[i
] + i
; /* { dg-warning "possibly-NULL" } */
23 /* Example of a "'" (to test quoting). */
24 *out
= some_call (i
, 'a');
29 /* Test that we can generate valid .dot files given a BB with no
45 /* { dg-final { dg-check-dot "dot-output.c.callgraph.dot" } } */
46 /* { dg-final { dg-check-dot "dot-output.c.eg.dot" } } */
47 /* { dg-final { dg-check-dot "dot-output.c.state-purge.dot" } } */
48 /* { dg-final { dg-check-dot "dot-output.c.supergraph.dot" } } */
49 /* { dg-final { dg-check-dot "dot-output.c.supergraph-eg.dot" } } */