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