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:
1e55d5b
)
[ELF] Test rejected --detect-odr-violations
author
Fangrui Song
<i@maskray.me>
Mon, 21 Nov 2022 18:57:29 +0000
(18:57 +0000)
committer
Fangrui Song
<i@maskray.me>
Mon, 21 Nov 2022 18:57:29 +0000
(18:57 +0000)
lld/test/ELF/silent-ignore.test
patch
|
blob
|
history
diff --git
a/lld/test/ELF/silent-ignore.test
b/lld/test/ELF/silent-ignore.test
index
85197b5
..
569e7dc
100644
(file)
--- a/
lld/test/ELF/silent-ignore.test
+++ b/
lld/test/ELF/silent-ignore.test
@@
-19,3
+19,11
@@
RUN: -EB \
RUN: -EL \
RUN: -G 0
RUN: not ld.lld --version --not-an-ignored-argument
+
+Test some options that we reject (including those what we used to silently ignore).
+
+--detect-odr-violations is a gold-specific option that we don't implement and if
+we do, probably in a different way under a different spelling.
+RUN: not ld.lld --detect-odr-violations 2>&1 | FileCheck %s
+
+CHECK: error: unknown argument