blob: a782bedfdbf42a0b3be74ba0d07f111adfee5d3a [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)
19// CHECK-NEXT: ('st_value', 0x00000000)
20// CHECK-NEXT: ('st_size', 0x00000000)
21// CHECK-NEXT: ),