FileCheckize a bunch of tests.
[oota-llvm.git] / test / Analysis / CallGraph / 2008-09-09-DirectCall.ll
index 784d6c7ba1b123ab1e9246ee0561477e91d95613..595cc427c452afe681d2f96521ec4171996a7f00 100644 (file)
@@ -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: