llvm-project/llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll

9 lines
189 B
LLVM

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