From e7ec558f25d92669e3f51c0829bd4304aee52496 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 21 Dec 2012 01:30:23 +0000 Subject: Revert r170826. The output of ./bin/clang -cc1 -internal-isystem /home/espindola/llvm/build/lib/clang/3.3/include/ -analyze -analyzer-checker=debug.DumpCallGraph /home/espindola/llvm/clang/test/Analysis/debug-CallGraph.c -fblocks changes in each run. llvm-svn: 170829 --- clang/test/Analysis/debug-CallGraph.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'clang/test/Analysis/debug-CallGraph.c') diff --git a/clang/test/Analysis/debug-CallGraph.c b/clang/test/Analysis/debug-CallGraph.c index 021a4686445..b7c7c8a8447 100644 --- a/clang/test/Analysis/debug-CallGraph.c +++ b/clang/test/Analysis/debug-CallGraph.c @@ -1,9 +1,9 @@ -// RUN: %clang_cc1 -analyze -analyzer-checker=debug.DumpCallGraph %s -fblocks 2>&1 | FileCheck %s +// RUN: %clang_cc1 -analyze -analyzer-checker=debug.DumpCallGraph %s 2>&1 | FileCheck %s static void mmm(int y) { if (y != 0) y++; - y = y/y; + y = y/0; } static int foo(int x, int y) { @@ -17,17 +17,5 @@ void aaa() { foo(1,2); } -void bbb(int y) { - int x = (y > 2); - ^ { - foo(x, y); - }(); -} - // CHECK:--- Call graph Dump --- -// CHECK: Function: < root > calls: mmm foo aaa < > bbb -// CHECK: Function: bbb calls: < > -// CHECK: Function: mmm calls: -// CHECK: Function: aaa calls: foo -// CHECK: Function: foo calls: mmm -// CHECK: Function: < > calls: foo +// CHECK: Function: < root > calls: aaa -- cgit v1.2.3