aboutsummaryrefslogtreecommitdiff
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.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ELF/gc-sections-print.s b/test/ELF/gc-sections-print.s
index 59177a65367e..e05824177c1f 100644
--- a/test/ELF/gc-sections-print.s
+++ b/test/ELF/gc-sections-print.s
@@ -5,6 +5,12 @@
# PRINT: removing unused section from '.text.x' in file
# PRINT-NEXT: removing unused section from '.text.y' in file
+# 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: