Rafael Espindola | db9835d | 2010-11-15 14:40:36 +0000 | [diff] [blame] | 1 | // 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 Divacky | 1ae3c16 | 2010-12-20 20:49:43 +0000 | [diff] [blame] | 19 | // CHECK-NEXT: ('st_value', 0x0000000000000000) |
| 20 | // CHECK-NEXT: ('st_size', 0x0000000000000000) |
Rafael Espindola | db9835d | 2010-11-15 14:40:36 +0000 | [diff] [blame] | 21 | // CHECK-NEXT: ), |