debug-CallGraph.c revision 6d42f4d8b8a176336a8c49ec3cf5f7fb6545ccfd
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