From 15b8cd919033a78a55256b2e7cda81de2b29c2e0 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Mon, 26 Nov 2018 12:36:16 +0000 Subject: [PATCH] [LLD][ELF] - Add a check for --split-stack-adjust-size error message. NFCI. "--split-stack-adjust-size: size must be >= 0" message was never tested. llvm-svn: 347550 --- lld/test/ELF/ppc64-split-stack-adjust-size-success.s | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lld/test/ELF/ppc64-split-stack-adjust-size-success.s b/lld/test/ELF/ppc64-split-stack-adjust-size-success.s index eeaac12..913d262 100644 --- a/lld/test/ELF/ppc64-split-stack-adjust-size-success.s +++ b/lld/test/ELF/ppc64-split-stack-adjust-size-success.s @@ -9,6 +9,8 @@ # RUN: llvm-objdump -d %t | FileCheck %s -check-prefix=SMALL # RUN: ld.lld %t1.o %t2.o -o %t --defsym __morestack=0x10010000 -split-stack-adjust-size 0 # RUN: llvm-objdump -d %t | FileCheck %s -check-prefix=ZERO +# RUN: not ld.lld %t1.o %t2.o -o %t -split-stack-adjust-size -1 2>&1 | FileCheck %s -check-prefix=ERR +# ERR: error: --split-stack-adjust-size: size must be >= 0 # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/ppc64-no-split-stack.s -o %t2.o -- 2.7.4