projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9ab0d0
)
[LLD][ELF] - Added a test for "-image-base: number expected" message. NFC.
author
George Rimar
<grimar@accesssoftek.com>
Mon, 26 Nov 2018 13:15:57 +0000
(13:15 +0000)
committer
George Rimar
<grimar@accesssoftek.com>
Mon, 26 Nov 2018 13:15:57 +0000
(13:15 +0000)
We had no such test.
llvm-svn: 347553
lld/test/ELF/image-base.s
patch
|
blob
|
history
diff --git
a/lld/test/ELF/image-base.s
b/lld/test/ELF/image-base.s
index
eb79acd
..
8866708
100644
(file)
--- a/
lld/test/ELF/image-base.s
+++ b/
lld/test/ELF/image-base.s
@@
-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