brintos

brintos / llvm-project-archived public Read only

0
0
Text · 787 B · 815e16a Raw
27 lines · plain
1// REQUIRES: aarch64-registered-target2// RUN: llvm-mc -filetype=obj -triple aarch64-windows %s -o - \3// RUN:   | not llvm-readobj --unwind - 2>&1 | FileCheck %s4 5// Older versions of LLVM had a bug where we would accidentally6// truncate the number of epilogue scopes to a uint8_t; make7// sure this doesn't happen.8//9// We expect the llvm-readobj invocation to fail because the10// xdata section is truncated (to reduce the size of the testcase).11 12// CHECK: EpilogueScopes: 25613 14.section .pdata,"dr"15        .long "?func@@YAHXZ"@IMGREL16        .long "$unwind$func@@YAHXZ"@IMGREL17 18        .text19        .globl  "?func@@YAHXZ"20        .p2align        321"?func@@YAHXZ":22        ret23 24.section        .xdata,"dr"25"$unwind$func@@YAHXZ":26.long 0x00000000, 0x02010100, 0x09000000, 0x0A00000027