[lld] ed7870c - [ELF] Test rejected --detect-odr-violations

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 10:57:35 PST 2022


Author: Fangrui Song
Date: 2022-11-21T18:57:29Z
New Revision: ed7870c2e5c4069c47d231e4a6dbf1fb17d3adff

URL: https://github.com/llvm/llvm-project/commit/ed7870c2e5c4069c47d231e4a6dbf1fb17d3adff
DIFF: https://github.com/llvm/llvm-project/commit/ed7870c2e5c4069c47d231e4a6dbf1fb17d3adff.diff

LOG: [ELF] Test rejected --detect-odr-violations

Added: 
    

Modified: 
    lld/test/ELF/silent-ignore.test

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/silent-ignore.test b/lld/test/ELF/silent-ignore.test
index 85197b5ff6d2..569e7dc07915 100644
--- 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 
diff erent way under a 
diff erent spelling.
+RUN: not ld.lld --detect-odr-violations 2>&1 | FileCheck %s
+
+CHECK: error: unknown argument


        


More information about the llvm-commits mailing list