• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump  | FileCheck %s
2
3// Test that both foo and bar are undefined.
4
5.globl foo
6.globl bar
7mov %eax,bar
8
9
10// CHECK:      (('st_name', 0x00000005) # 'bar'
11// CHECK-NEXT:  ('st_bind', 0x1)
12// CHECK-NEXT:  ('st_type', 0x0)
13// CHECK-NEXT:  ('st_other', 0x00)
14// CHECK-NEXT:  ('st_shndx', 0x0000)
15// CHECK-NEXT:  ('st_value', 0x0000000000000000)
16// CHECK-NEXT:  ('st_size', 0x0000000000000000)
17// CHECK-NEXT: ),
18// CHECK-NEXT: # Symbol 5
19// CHECK-NEXT: (('st_name', 0x00000001) # 'foo'
20// CHECK-NEXT:  ('st_bind', 0x1)
21// CHECK-NEXT:  ('st_type', 0x0)
22// CHECK-NEXT:  ('st_other', 0x00)
23// CHECK-NEXT:  ('st_shndx', 0x0000)
24// CHECK-NEXT:  ('st_value', 0x0000000000000000)
25// CHECK-NEXT:  ('st_size', 0x0000000000000000)
26// CHECK-NEXT: ),
27