diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
| commit | 1c98619801a5705c688e683be3ef9d70169a0686 (patch) | |
| tree | 8422105cd1a94c368315f2db16b9ac746cf7c000 /test/ELF/gc-sections-eh.s | |
| parent | f4f3ce4613680903220815690ad79fc7ba0a2e26 (diff) | |
Notes
Diffstat (limited to 'test/ELF/gc-sections-eh.s')
| -rw-r--r-- | test/ELF/gc-sections-eh.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ELF/gc-sections-eh.s b/test/ELF/gc-sections-eh.s index 042b68ebdfe27..88c3dd0d9ca43 100644 --- a/test/ELF/gc-sections-eh.s +++ b/test/ELF/gc-sections-eh.s @@ -1,10 +1,23 @@ # REQUIRES: x86 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t + # RUN: ld.lld %t -o %t2 --gc-sections # RUN: llvm-readobj -t %t2 | FileCheck %s +# RUN: llvm-objdump --dwarf=frames %t2 | FileCheck --check-prefix=EH %s + +# RUN: ld.lld %t -o %t3 +# RUN: llvm-readobj -t %t3 | FileCheck --check-prefix=NOGC %s +# RUN: llvm-objdump --dwarf=frames %t3 | FileCheck --check-prefix=EHNOGC %s # CHECK-NOT: foo +# NOGC: foo + +# EH: FDE cie={{.*}} pc= +# EH-NOT: FDE + +# EHNOGC: FDE cie={{.*}} pc= +# EHNOGC: FDE cie={{.*}} pc= .section .text,"ax",@progbits,unique,0 .globl foo |
