1 ## Check that the sanity check for an inconsistent header works.
2 ## The first word contains the bad value for CodeWords, 0xf, which indicates
3 ## that we need 0x11110 << 2 = 120 bytes of space for the unwind codes.
4 ## It follows that the .xdata section is badly formed as only 8 bytes are
5 ## allocated for the unwind codes.
7 // REQUIRES
: aarch64-registered-target
8 // RUN
: llvm-mc
-filetype
=obj
-triple aarch64-windows
%s
-o
- \
9 // RUN
: |
not llvm-readobj
--unwind
- 2>&1 | FileCheck
%s
11 // CHECK
: LLVM ERROR
: Malformed unwind data
31 bl "?func3@@YAHPEAH@Z"
38 .long "?func@@YAHXZ"@IMGREL
39 .long "$unwind$func@@YAHXZ"@IMGREL
43 "$unwind$func@@YAHXZ":