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

; 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
}