aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/CallGraph/2008-09-09-DirectCall.ll')
-rw-r--r--test/Analysis/CallGraph/2008-09-09-DirectCall.ll8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Analysis/CallGraph/2008-09-09-DirectCall.ll b/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
index 784d6c7ba1b1..595cc427c452 100644
--- a/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
+++ b/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
@@ -1,5 +1,9 @@
-; RUN: opt < %s -print-callgraph -disable-output |& \
-; RUN: grep {calls function 'callee'} | count 2
+; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
+
+; CHECK: Call graph node <<null function>>
+; CHECK: CS<{{.*}}> calls function 'callee'
+; CHECK: Call graph node for function: 'caller'
+; CHECK: CS<{{.*}}> calls function 'callee'
define internal void @callee(...) {
entry: