diff --git a/test/Feature/globalredefinition.ll b/test/Feature/globalredefinition.ll new file mode 100644 index 00000000000..793554a2c79 --- /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()