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

10 lines
188 B
LLVM
Raw Normal View History

; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
@a = global void ()* @f ; <void ()**> [#uses=0]
; CHECK: calls function 'f'
define internal void @f() {
unreachable
}