summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-01 00:10:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-01 00:10:17 +0000
commitff68cb7f4cc40add935e31c5150d3002e6944e14 (patch)
treebc8e91e4fa1eb4d4d3aab2ab791e1337c47b698a /llvm/test
parente18ed4e16bfc7b8aa76afd04116b17586d9d9860 (diff)
downloadbcm5719-llvm-ff68cb7f4cc40add935e31c5150d3002e6944e14.tar.gz
bcm5719-llvm-ff68cb7f4cc40add935e31c5150d3002e6944e14.zip
Start fixing pr19147.
This makes the coff writer compute the correct symbol value for the test in pr19147. The section is still incorrect, that will be fixed in a followup patch. llvm-svn: 207728
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/COFF/offset.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/MC/COFF/offset.s b/llvm/test/MC/COFF/offset.s
new file mode 100644
index 00000000000..9e6f42c4ddd
--- /dev/null
+++ b/llvm/test/MC/COFF/offset.s
@@ -0,0 +1,19 @@
+// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o - | llvm-readobj -t -r | FileCheck %s
+
+ .data
+ .globl test1_foo
+test1_foo:
+ .long 42
+
+ .globl test1_zed
+test1_zed = test1_foo + 1
+
+// CHECK: Symbol {
+// CHECK: Name: test1_zed
+// CHECK-NEXT: Value: 1
+// CHECK-NEXT: Section:
+// CHECK-NEXT: BaseType: Null
+// CHECK-NEXT: ComplexType: Null
+// CHECK-NEXT: StorageClass: External
+// CHECK-NEXT: AuxSymbolCount: 0
+// CHECK-NEXT: }
OpenPOWER on IntegriCloud