summaryrefslogtreecommitdiff
path: root/test/MC/ELF/undef2.s
blob: 6aa66c05c4bb7c6f6905ef7979560d248be46e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -t | FileCheck %s

// Test that this produces an undefined reference to .Lfoo

        je	.Lfoo

// CHECK:       Section {
// CHECK:         Name: .strtab

// CHECK:       Symbol {
// CHECK:         Name: .Lfoo
// CHECK-NEXT:    Value:
// CHECK-NEXT:    Size:
// CHECK-NEXT:    Binding: Global
// CHECK-NEXT:    Type:
// CHECK-NEXT:    Other:
// CHECK-NEXT:    Section:
// CHECK-NEXT:  }