1 // This test checks that the SEH directives emit the correct unwind data.
2 // RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | coff-dump.py | FileCheck %s
4 // CHECK: Name = .xdata
5 // CHECK-NEXT: VirtualSize
6 // CHECK-NEXT: VirtualAddress
7 // CHECK-NEXT: SizeOfRawData = 52
8 // CHECK-NEXT: PointerToRawData
9 // CHECK-NEXT: PointerToRelocations
10 // CHECK-NEXT: PointerToLineNumbers
11 // CHECK-NEXT: NumberOfRelocations = 4
12 // CHECK-NEXT: NumberOfLineNumbers = 0
13 // CHECK-NEXT: Charateristics
14 // CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
15 // CHECK-NEXT: IMAGE_SCN_ALIGN_4BYTES
16 // CHECK-NEXT: IMAGE_SCN_MEM_READ
17 // CHECK-NEXT: IMAGE_SCN_MEM_WRITE
18 // CHECK-NEXT: SectionData
19 // CHECK-NEXT: 09 12 08 03 00 03 0F 30 - 0E 88 00 00 09 64 02 00
20 // CHECK-NEXT: 04 22 00 1A 00 00 00 00 - 00 00 00 00 21 00 00 00
21 // CHECK-NEXT: 00 00 00 00 1B 00 00 00 - 00 00 00 00 01 00 00 00
22 // CHECK-NEXT: 00 00 00 00
26 .def func; .scl 2; .type 32; .endef
41 .seh_handler __C_specific_handler, @except
54 // Test emission of small functions.
56 .def smallFunc; .scl 2; .type 32; .endef