• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-readobj -s - | FileCheck %s
2
3// This used to crash. Test that it create an empty section instead.
4
5        .pushsection foo
6        .popsection
7
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:  }
22