diff options
Diffstat (limited to 'test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll')
-rw-r--r-- | test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll b/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll new file mode 100644 index 000000000000..ffc27bbe43d1 --- /dev/null +++ b/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -print-callgraph -disable-output |& \ +; RUN: grep {Calls function} + +@a = global void ()* @f ; <void ()**> [#uses=0] + +define internal void @f() { + unreachable +} |