From f05591d35992dd22f1b5408dfa12c2da5900e6f5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 14 Jul 2004 22:59:47 +0000 Subject: New, horrible, testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14829 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Feature/globalredefinition.ll | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/Feature/globalredefinition.ll (limited to 'test') diff --git a/test/Feature/globalredefinition.ll b/test/Feature/globalredefinition.ll new file mode 100644 index 0000000000..793554a2c7 --- /dev/null +++ b/test/Feature/globalredefinition.ll @@ -0,0 +1,18 @@ +; Test forward references and redefinitions of globals + +%Y = global void()* %X + +%A = global int* %B +%B = global int 7 +%B = global int 7 + + +declare void %X() + +declare void %X() + +void %X() { + ret void +} + +declare void %X() -- cgit v1.2.3