blob: b7c7c8a8447d73b34b8e7ae4e7e814be0affc0f5 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// RUN: %clang_cc1 -analyze -analyzer-checker=debug.DumpCallGraph %s 2>&1 | FileCheck %s
static void mmm(int y) {
if (y != 0)
y++;
y = y/0;
}
static int foo(int x, int y) {
mmm(y);
if (x != 0)
x++;
return 5/x;
}
void aaa() {
foo(1,2);
}
// CHECK:--- Call graph Dump ---
// CHECK: Function: < root > calls: aaa
|