diff options
Diffstat (limited to 'lld/test/pecoff/secrel.test')
| -rw-r--r-- | lld/test/pecoff/secrel.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lld/test/pecoff/secrel.test b/lld/test/pecoff/secrel.test new file mode 100644 index 00000000000..05014c47af4 --- /dev/null +++ b/lld/test/pecoff/secrel.test @@ -0,0 +1,16 @@ +# RUN: yaml2obj %p/Inputs/secrel1.obj.yaml > %t1.obj +# RUN: yaml2obj %p/Inputs/secrel2.obj.yaml > %t2.obj +# RUN: yaml2obj %p/Inputs/secrel2.obj.yaml > %t3.obj +# +# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:main \ +# RUN: -- %t1.obj %t2.obj %t3.obj +# RUN: llvm-objdump -s %t.exe | FileCheck %s + +CHECK: Contents of section .data: +CHECK: 1000 00000000 00000000 00000000 00000000 +CHECK: 1010 10000000 00000000 00000000 00000000 +CHECK: 1020 20000000 00000000 00000000 00000000 +CHECK: Contents of section .data2: +CHECK: 2000 00000000 00000000 00000000 00000000 +CHECK: 2010 10000000 00000000 00000000 00000000 +CHECK: 2020 20000000 00000000 00000000 00000000 |

