[lld] f8476fd - [llvm-ar][test] Test that --plugin is ignored

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 12 11:32:36 PST 2022


Author: Fangrui Song
Date: 2022-01-12T11:32:31-08:00
New Revision: f8476fd47b539a14d6a8994e7a5e6401f9ed2a98

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

LOG: [llvm-ar][test] Test that --plugin is ignored

Added: 
    lld/test/ELF/linkerscript/plugin.test

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/linkerscript/plugin.test b/lld/test/ELF/linkerscript/plugin.test
new file mode 100644
index 0000000000000..0dda3d98dde28
--- /dev/null
+++ b/lld/test/ELF/linkerscript/plugin.test
@@ -0,0 +1,9 @@
+## Test that --plugin is ignored.
+
+# RUN: rm -f %t.a
+# RUN: touch %t.txt
+# RUN: llvm-ar rc %t.a %t.txt
+# RUN: llvm-ar --plugin ignore t %t.a | FileCheck %s
+# RUN: llvm-ar t --plugin=ignore %t.a | FileCheck %s
+
+# CHECK: {{.*}}.txt


        


More information about the llvm-commits mailing list