1 // REQUIRES
: aarch64-registered-target
2 // RUN
: llvm-mc
-filetype
=obj
-triple aarch64-windows
%s
-o
- \
3 // RUN
: |
not llvm-readobj
--unwind
- | FileCheck
%s
5 // Older versions of LLVM had
a bug where we would accidentally
6 // truncate the number of epilogue scopes to
a uint8_t; make
7 // sure this doesn
't happen.
9 // We expect the llvm-readobj invocation to fail because the
10 // xdata section is truncated (to reduce the size of the testcase).
12 // CHECK: EpilogueScopes: 256
15 .long "?func@@YAHXZ"@IMGREL
16 .long "$unwind$func@@YAHXZ"@IMGREL
25 "$unwind$func@@YAHXZ":
26 .long 0x00000000, 0x02010100, 0x09000000, 0x0A000000