[lld] r347553 - [LLD][ELF] - Added a test for "-image-base: number expected" message. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 26 05:15:57 PST 2018
Author: grimar
Date: Mon Nov 26 05:15:57 2018
New Revision: 347553
URL: http://llvm.org/viewvc/llvm-project?rev=347553&view=rev
Log:
[LLD][ELF] - Added a test for "-image-base: number expected" message. NFC.
We had no such test.
Modified:
lld/trunk/test/ELF/image-base.s
Modified: lld/trunk/test/ELF/image-base.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/image-base.s?rev=347553&r1=347552&r2=347553&view=diff
==============================================================================
--- lld/trunk/test/ELF/image-base.s (original)
+++ lld/trunk/test/ELF/image-base.s Mon Nov 26 05:15:57 2018
@@ -3,6 +3,9 @@
# RUN: ld.lld -image-base=0x1000000 %t -o %t1
# RUN: llvm-readobj -program-headers %t1 | FileCheck %s
+# RUN: not ld.lld -image-base=ABC %t -o %t1 2>&1 | FileCheck --check-prefix=ERR %s
+# ERR: error: -image-base: number expected, but got ABC
+
# RUN: ld.lld -image-base=0x1000 -z max-page-size=0x2000 %t -o %t1 2>&1 | FileCheck --check-prefix=WARN %s
# WARN: warning: -image-base: address isn't multiple of page size: 0x1000
More information about the llvm-commits
mailing list