YouCompleteMe/cpp/llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll

14 lines
259 B
LLVM
Raw Normal View History

2012-07-05 20:51:06 -04:00
; RUN: opt < %s -print-callgraph -disable-output |& \
; RUN: grep {calls function 'callee'} | count 2
define internal void @callee(...) {
entry:
unreachable
}
define void @caller() {
entry:
call void (...)* @callee( void (...)* @callee )
unreachable
}