-; RUN: llvm-as < %s | opt -analyze -callgraph -disable-output | grep {Calls function}
+; 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
}