bolt/deps/llvm-18.1.8/llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll

10 lines
188 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: opt < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s
@a = global ptr @f ; <ptr> [#uses=0]
; CHECK: calls function 'f'
define internal void @f() {
unreachable
}