[llvm] r204205 - Make the test harder by using a non-zero offset.

Rafael Espindola rafael.espindola at gmail.com
Tue Mar 18 17:26:58 PDT 2014


Author: rafael
Date: Tue Mar 18 19:26:58 2014
New Revision: 204205

URL: http://llvm.org/viewvc/llvm-project?rev=204205&view=rev
Log:
Make the test harder by using a non-zero offset.

Modified:
    llvm/trunk/test/MC/ELF/alias.s

Modified: llvm/trunk/test/MC/ELF/alias.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/alias.s?rev=204205&r1=204204&r2=204205&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/alias.s (original)
+++ llvm/trunk/test/MC/ELF/alias.s Tue Mar 18 19:26:58 2014
@@ -10,12 +10,12 @@ foo3:
 	.globl	bar3
 bar3 = foo3
 
-// Test that bar4 is also a function
-        .type	foo4, at function
+
+// Test that bar4  and bar 5 are also functions and have the same value as foo4.
+	.byte 0
+	.type	foo4, at function
 foo4:
 bar4 = foo4
-
-// Test that bar5 is also a function
 bar5 = bar4
 
         .long foo2
@@ -41,7 +41,7 @@ bar5 = bar4
 // CHECK-NEXT:   }
 // CHECK-NEXT:   Symbol {
 // CHECK-NEXT:     Name: bar4
-// CHECK-NEXT:     Value: 0x0
+// CHECK-NEXT:     Value: 0x1
 // CHECK-NEXT:     Size: 0
 // CHECK-NEXT:     Binding: Local
 // CHECK-NEXT:     Type: Function
@@ -50,7 +50,7 @@ bar5 = bar4
 // CHECK-NEXT:   }
 // CHECK-NEXT:   Symbol {
 // CHECK-NEXT:     Name: bar5
-// CHECK-NEXT:     Value: 0x0
+// CHECK-NEXT:     Value: 0x1
 // CHECK-NEXT:     Size: 0
 // CHECK-NEXT:     Binding: Local
 // CHECK-NEXT:     Type: Function
@@ -77,7 +77,7 @@ bar5 = bar4
 // CHECK-NEXT:   }
 // CHECK-NEXT:   Symbol {
 // CHECK-NEXT:     Name: foo4
-// CHECK-NEXT:     Value: 0x0
+// CHECK-NEXT:     Value: 0x1
 // CHECK-NEXT:     Size: 0
 // CHECK-NEXT:     Binding: Local
 // CHECK-NEXT:     Type: Function





More information about the llvm-commits mailing list