diff options
Diffstat (limited to 'test/Analysis/CallGraph/2008-09-09-DirectCall.ll')
-rw-r--r-- | test/Analysis/CallGraph/2008-09-09-DirectCall.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/CallGraph/2008-09-09-DirectCall.ll b/test/Analysis/CallGraph/2008-09-09-DirectCall.ll new file mode 100644 index 0000000..4f090d5 --- /dev/null +++ b/test/Analysis/CallGraph/2008-09-09-DirectCall.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -analyze -callgraph -disable-output | grep {Calls function 'callee'} | count 2 + +define internal void @callee(...) { +entry: + unreachable +} + +define void @caller() { +entry: + call void (...)* @callee( void (...)* @callee ) + unreachable +} |