diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-28 01:46:31 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-28 01:46:31 +0000 |
| commit | 36f2edb6fdaedb5a620678795057b331ad2956c1 (patch) | |
| tree | 4343e9220517379a7200c2ecde2edf1cd6409580 | |
| parent | f73c8a06a97748030b36d394db3cee2560968348 (diff) | |
| download | bcm5719-llvm-36f2edb6fdaedb5a620678795057b331ad2956c1.tar.gz bcm5719-llvm-36f2edb6fdaedb5a620678795057b331ad2956c1.zip | |
Check the produced file instead of stderr.
It is somewhat pointless to check that a specific error is not
produced. That is already checked by the ld.lld exit value.
Instead make the test a bit stronger by checking that the output file
has the expected symbol and section.
llvm-svn: 306496
| -rw-r--r-- | lld/test/ELF/linkerscript/data-commands-gc.s | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/test/ELF/linkerscript/data-commands-gc.s b/lld/test/ELF/linkerscript/data-commands-gc.s index 46ce6a97cf7..1afcc9a3bb8 100644 --- a/lld/test/ELF/linkerscript/data-commands-gc.s +++ b/lld/test/ELF/linkerscript/data-commands-gc.s @@ -1,9 +1,10 @@ # REQUIRES: x86 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { .text : { *(.text*) QUAD(bar) } }" > %t.script -# RUN: ld.lld --gc-sections -o %t %t.o --script %t.script | FileCheck -allow-empty %s +# RUN: ld.lld --gc-sections -o %t %t.o --script %t.script +# RUN: llvm-objdump -t %t | FileCheck %s -# CHECK-NOT: unable to evaluate expression: input section .rodata.bar has no output section assigned +# CHECK: 0000000000000011 .rodata 00000000 bar .section .rodata.bar .quad 0x1122334455667788 |

