diff options
Diffstat (limited to 'test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll')
-rw-r--r-- | test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll b/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll new file mode 100644 index 0000000..740f720 --- /dev/null +++ b/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll @@ -0,0 +1,13 @@ +; RUN: opt < %s -globaldce +; + +@X = global void ()* @func ; <void ()**> [#uses=0] + +; Not dead, can be reachable via X +define internal void @func() { + ret void +} + +define void @main() { + ret void +} |