1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -t | FileCheck %s 2 3// Test that a STT_FILE symbol and a symbol of the same name can coexist. 4 5.file "foo.c" 6.file "bar.c" 7 .globl foo.c 8foo.c: 9 10 .globl bar.c 11bar.c: 12 13// CHECK: Symbol { 14// CHECK: Name: foo.c 15// CHECK-NEXT: Value: 0x0 16// CHECK-NEXT: Size: 0 17// CHECK-NEXT: Binding: Local 18// CHECK-NEXT: Type: File 19// CHECK-NEXT: Other: 0 20// CHECK-NEXT: Section: Absolute (0xFFF1) 21// CHECK-NEXT: } 22// CHECK: Name: bar.c 23// CHECK-NEXT: Value: 0x0 24// CHECK-NEXT: Size: 0 25// CHECK-NEXT: Binding: Local 26// CHECK-NEXT: Type: File 27// CHECK-NEXT: Other: 0 28// CHECK-NEXT: Section: Absolute (0xFFF1) 29// CHECK-NEXT: } 30// CHECK: Symbol { 31// CHECK: Name: bar.c 32// CHECK-NEXT: Value: 0x0 33// CHECK-NEXT: Size: 0 34// CHECK-NEXT: Binding: Global 35// CHECK-NEXT: Type: None 36// CHECK-NEXT: Other: 0 37// CHECK-NEXT: Section: .text 38// CHECK-NEXT: } 39// CHECK: Symbol { 40// CHECK: Name: foo.c 41// CHECK-NEXT: Value: 0x0 42// CHECK-NEXT: Size: 0 43// CHECK-NEXT: Binding: Global 44// CHECK-NEXT: Type: None 45// CHECK-NEXT: Other: 0 46// CHECK-NEXT: Section: .text 47// CHECK-NEXT: } 48