aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll')
-rw-r--r--test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll b/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
index 0c5ef92ef71e..ac95188899c9 100644
--- a/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
+++ b/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
@@ -1,7 +1,9 @@
-; RUN: opt < %s -print-callgraph -disable-output |& grep {calls function}
+; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
@a = global void ()* @f ; <void ()**> [#uses=0]
+; CHECK: calls function 'f'
+
define internal void @f() {
unreachable
}