diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/Feature/globalredefinition.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/Feature/globalredefinition.ll b/llvm/test/Feature/globalredefinition.ll new file mode 100644 index 00000000000..793554a2c79 --- /dev/null +++ b/llvm/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() |

