[LLD][ELF] - Add a check for --split-stack-adjust-size error message. NFCI.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 26 Nov 2018 12:36:16 +0000 (12:36 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 26 Nov 2018 12:36:16 +0000 (12:36 +0000)
"--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

index eeaac12..913d262 100644 (file)
@@ -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