Skip to content

Commit ed7870c

Browse files
committed
[ELF] Test rejected --detect-odr-violations
1 parent 1e55d5b commit ed7870c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lld/test/ELF/silent-ignore.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ RUN: -EB \
1919
RUN: -EL \
2020
RUN: -G 0
2121
RUN: not ld.lld --version --not-an-ignored-argument
22+
23+
Test some options that we reject (including those what we used to silently ignore).
24+
25+
--detect-odr-violations is a gold-specific option that we don't implement and if
26+
we do, probably in a different way under a different spelling.
27+
RUN: not ld.lld --detect-odr-violations 2>&1 | FileCheck %s
28+
29+
CHECK: error: unknown argument

0 commit comments

Comments
 (0)