Changes in directory llvm/test/Feature:
globalredefinition2.ll added (r1.1) globalredefinition3.ll added (r1.1) globalredefinition.ll updated: 1.3 -> 1.4 --- Log message: For PR1077: http://llvm.org/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. --- Diffs of the changes: (+15 -4) globalredefinition.ll | 4 ---- globalredefinition2.ll | 6 ++++++ globalredefinition3.ll | 9 +++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) Index: llvm/test/Feature/globalredefinition2.ll diff -c /dev/null llvm/test/Feature/globalredefinition2.ll:1.1 *** /dev/null Fri Jan 5 11:25:22 2007 --- llvm/test/Feature/globalredefinition2.ll Fri Jan 5 11:25:12 2007 *************** *** 0 **** --- 1,6 ---- + ; Test that redefinitions of globals produces an error in llvm-upgrade + ; RUN: llvm-upgrade < %s -o /dev/null -f 2>&1 | \ + ; RUN: grep "Global variable '%B' was renamed to '" + + %B = global int 7 + %B = global int 7 Index: llvm/test/Feature/globalredefinition3.ll diff -c /dev/null llvm/test/Feature/globalredefinition3.ll:1.1 *** /dev/null Fri Jan 5 11:25:28 2007 --- llvm/test/Feature/globalredefinition3.ll Fri Jan 5 11:25:12 2007 *************** *** 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 Index: llvm/test/Feature/globalredefinition.ll diff -u llvm/test/Feature/globalredefinition.ll:1.3 llvm/test/Feature/globalredefinition.ll:1.4 --- llvm/test/Feature/globalredefinition.ll:1.3 Fri Dec 1 22:23:07 2006 +++ llvm/test/Feature/globalredefinition.ll Fri Jan 5 11:25:12 2007 @@ -4,12 +4,8 @@ ; 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() _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits