diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-21 01:30:23 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-12-21 01:30:23 +0000 |
commit | e7ec558f25d92669e3f51c0829bd4304aee52496 (patch) | |
tree | 873a239fb0963e4c652d7dff5604f9648fd1580c /clang/test/Analysis/debug-CallGraph.c | |
parent | a4b53f20a383947767fe82f63b5a5149a0b4e0c4 (diff) | |
download | bcm5719-llvm-e7ec558f25d92669e3f51c0829bd4304aee52496.tar.gz bcm5719-llvm-e7ec558f25d92669e3f51c0829bd4304aee52496.zip |
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
Diffstat (limited to 'clang/test/Analysis/debug-CallGraph.c')
-rw-r--r-- | clang/test/Analysis/debug-CallGraph.c | 18 |
1 files changed, 3 insertions, 15 deletions
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 |