summaryrefslogtreecommitdiff
path: root/test/ELF/gc-sections-print.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/gc-sections-print.s')
-rw-r--r--test/ELF/gc-sections-print.s29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/ELF/gc-sections-print.s b/test/ELF/gc-sections-print.s
deleted file mode 100644
index a822e9ef3479..000000000000
--- a/test/ELF/gc-sections-print.s
+++ /dev/null
@@ -1,29 +0,0 @@
-# REQUIRES: x86
-# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t --gc-sections --print-gc-sections -o %t2 2>&1 | FileCheck -check-prefix=PRINT %s
-
-# PRINT: removing unused section {{.*}}:(.text.x)
-# PRINT-NEXT: removing unused section {{.*}}:(.text.y)
-
-# RUN: ld.lld %t --gc-sections --print-gc-sections --no-print-gc-sections -o %t2 >& %t.log
-# RUN: echo >> %t.log
-# RUN: FileCheck -check-prefix=NOPRINT %s < %t.log
-
-# NOPRINT-NOT: removing
-
-.globl _start
-.protected a, x, y
-_start:
- call a
-
-.section .text.a,"ax",@progbits
-a:
- nop
-
-.section .text.x,"ax",@progbits
-x:
- nop
-
-.section .text.y,"ax",@progbits
-y:
- nop