diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-05 17:25:12 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-05 17:25:12 +0000 |
commit | dfa4b1aab641046b5660379b25c24adee61ea7ce (patch) | |
tree | 556aa9533ea5b817d01ba7e0c0dccb0f88bd2e13 /test/Feature/globalredefinition3.ll | |
parent | 4933af147aa7a5d67d58f4d0d375aebf6a8f33f2 (diff) | |
download | llvm-dfa4b1aab641046b5660379b25c24adee61ea7ce.tar.gz llvm-dfa4b1aab641046b5660379b25c24adee61ea7ce.tar.bz2 llvm-dfa4b1aab641046b5660379b25c24adee61ea7ce.tar.xz |
For PR1077:
Split this test case into three cases. globalredefinition.ll just tests
that a global can be forward referenced. globalredefinition2.ll tests
that llvm-upgrade will warn about renaming duplicate global variables.
globalredefinition3.ll tests that llvm-as will generate an error on
duplicate global variables. This last test is currently XFAIL because
the restriction is not implemented yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/globalredefinition3.ll')
-rw-r--r-- | test/Feature/globalredefinition3.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Feature/globalredefinition3.ll b/test/Feature/globalredefinition3.ll new file mode 100644 index 0000000000..e89ca07744 --- /dev/null +++ b/test/Feature/globalredefinition3.ll @@ -0,0 +1,9 @@ +; When PR1067 is fixed, this should not be XFAIL any more. +; RUN: llvm-as < %s -o /dev/null -f 2>&1 | \ +; RUN: grep 'Cannot redefine' +; XFAIL: * + +; Test forward references and redefinitions of globals + +%B = global i32 7 +%B = global i32 7 |