aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/debug-CallGraph.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-12-21 01:30:23 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-12-21 01:30:23 +0000
commit6d42f4d8b8a176336a8c49ec3cf5f7fb6545ccfd (patch)
treea4f2b31f0fde74b42d486050507d0a43d9f772bc /test/Analysis/debug-CallGraph.c
parent0db661e67f613f49d047cdf53da29b9741234ad8 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/debug-CallGraph.c')
-rw-r--r--test/Analysis/debug-CallGraph.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/test/Analysis/debug-CallGraph.c b/test/Analysis/debug-CallGraph.c
index 021a468644..b7c7c8a844 100644
--- a/test/Analysis/debug-CallGraph.c
+++ b/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