blob: ddc7c5bb11175f28fec15e264eaaf6785083c434 [file] [log] [blame]
Rafael Espindoladb9835d2010-11-15 14:40:36 +00001// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s
2
3// Test that we accept .set of a symbol after it has been used in a statement.
4
5 jmp foo
6 .set foo, bar
7
8// or a .quad
9
10 .quad foo2
11 .set foo2,bar2
12
13// Test that there is an undefined reference to bar
14// CHECK: (('st_name', 0x00000001) # 'bar'
15// CHECK-NEXT: ('st_bind', 0x00000001)
16// CHECK-NEXT: ('st_type', 0x00000000)
17// CHECK-NEXT: ('st_other', 0x00000000)
18// CHECK-NEXT: ('st_shndx', 0x00000000)
Roman Divacky1ae3c162010-12-20 20:49:43 +000019// CHECK-NEXT: ('st_value', 0x0000000000000000)
20// CHECK-NEXT: ('st_size', 0x0000000000000000)
Rafael Espindoladb9835d2010-11-15 14:40:36 +000021// CHECK-NEXT: ),