1// RUN: ld.lld %p/Inputs/discard-merge-unnamed.o -o %t2 -shared
2// RUN: llvm-readobj --symbols %t2 | FileCheck %s
3
4// Test that the unnamed symbol is SHF_MERGE is omitted.
5
6// CHECK:      Symbols [
7// CHECK-NEXT:   Symbol {
8// CHECK-NEXT:     Name:  (0)
9// CHECK-NEXT:     Value: 0x0
10// CHECK-NEXT:     Size: 0
11// CHECK-NEXT:     Binding: Local
12// CHECK-NEXT:     Type: None
13// CHECK-NEXT:     Other: 0
14// CHECK-NEXT:     Section: Undefined
15// CHECK-NEXT:   }
16// CHECK-NEXT:   Symbol {
17// CHECK-NEXT:     Name: _DYNAMIC
18// CHECK-NEXT:     Value:
19// CHECK-NEXT:     Size: 0
20// CHECK-NEXT:     Binding: Local
21// CHECK-NEXT:     Type: None
22// CHECK-NEXT:     Other [ (0x2)
23// CHECK-NEXT:       STV_HIDDEN
24// CHECK-NEXT:     ]
25// CHECK-NEXT:     Section: .dynamic
26// CHECK-NEXT:   }
27// CHECK-NEXT: ]
28