Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / test / MC / ELF / popsection.s
blobace6fac5e4ceafc7cba6832d1cc3919dc7357d3d
1 // RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-readobj -s - | FileCheck %s
3 // This used to crash. Test that it create an empty section instead.
5 .pushsection foo
6 .popsection
8 // CHECK: Section {
9 // CHECK: Index:
10 // CHECK: Name: foo
11 // CHECK-NEXT: Type: SHT_PROGBITS
12 // CHECK-NEXT: Flags [ (0x0)
13 // CHECK-NEXT: ]
14 // CHECK-NEXT: Address: 0x0
15 // CHECK-NEXT: Offset:
16 // CHECK-NEXT: Size: 0
17 // CHECK-NEXT: Link: 0
18 // CHECK-NEXT: Info: 0
19 // CHECK-NEXT: AddressAlignment: 1
20 // CHECK-NEXT: EntrySize: 0
21 // CHECK-NEXT: }