llvm-6502/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll
Duncan Sands e65d39a42c Teach -callgraph to always print the callgraph (as the
description says it does), not just when -analyze is
used as well.  This means printing to stderr, so adjust
some tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56337 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-19 07:57:09 +00:00

8 lines
172 B
LLVM

; RUN: llvm-as < %s | opt -callgraph -disable-output |& grep {Calls function}
@a = global void ()* @f ; <void ()**> [#uses=0]
define internal void @f() {
unreachable
}