Correct callgraph construction. It has two problems:
[oota-llvm.git] / test / Analysis / CallGraph / 2008-09-09-DirectCall.ll
diff --git a/test/Analysis/CallGraph/2008-09-09-DirectCall.ll b/test/Analysis/CallGraph/2008-09-09-DirectCall.ll
new file mode 100644 (file)
index 0000000..4f090d5
--- /dev/null
@@ -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
+}