diff options
Diffstat (limited to 'test/old-elf/ignore-unknownoption.test')
| -rw-r--r-- | test/old-elf/ignore-unknownoption.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old-elf/ignore-unknownoption.test b/test/old-elf/ignore-unknownoption.test new file mode 100644 index 000000000000..aa03a2eb4e73 --- /dev/null +++ b/test/old-elf/ignore-unknownoption.test @@ -0,0 +1,5 @@ +# This test tests that lld is able to print unknown options that are not +# recognized. +RUN: not lld -flavor old-gnu -target x86_64 --gc-sections 2> %t +RUN: FileCheck %s < %t +CHECK: warning: ignoring unknown argument: --gc-sections |
