• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -t | FileCheck %s
2
3// Test that the STT_FILE symbol precedes the other local symbols.
4
5.file "foo"
6foa:
7
8// CHECK:        Symbol {
9// CHECK:          Name: foo
10// CHECK-NEXT:     Value: 0x0
11// CHECK-NEXT:     Size: 0
12// CHECK-NEXT:     Binding: Local
13// CHECK-NEXT:     Type: File
14// CHECK-NEXT:     Other: 0
15// CHECK-NEXT:     Section: Absolute (0xFFF1)
16// CHECK-NEXT:   }
17// CHECK-NEXT:   Symbol {
18// CHECK-NEXT:     Name: foa
19// CHECK-NEXT:     Value: 0x0
20// CHECK-NEXT:     Size: 0
21// CHECK-NEXT:     Binding: Local
22// CHECK-NEXT:     Type: None
23// CHECK-NEXT:     Other: 0
24// CHECK-NEXT:     Section: .text
25// CHECK-NEXT:   }
26