debug-CallGraph.c revision 196b8cfe9cfcc452eb2f83aa4ad330c2324f8c7d
1// 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 22