[lld] r265256 - [LTO] Add a test to ensure we reject negative opt level.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 2 20:12:00 PDT 2016
Author: davide
Date: Sat Apr 2 22:12:00 2016
New Revision: 265256
URL: http://llvm.org/viewvc/llvm-project?rev=265256&view=rev
Log:
[LTO] Add a test to ensure we reject negative opt level.
We already got this right, but it never hurts adding another
test, in case we'll change the handling in the future, to ensure
we don't break it.
Modified:
lld/trunk/test/ELF/lto/opt-level.ll
Modified: lld/trunk/test/ELF/lto/opt-level.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/opt-level.ll?rev=265256&r1=265255&r2=265256&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/opt-level.ll (original)
+++ lld/trunk/test/ELF/lto/opt-level.ll Sat Apr 2 22:12:00 2016
@@ -10,6 +10,9 @@
; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --lto-O6 %t.o 2>&1 | \
; RUN: FileCheck --check-prefix=INVALID %s
; INVALID: invalid optimization level for LTO: 6
+; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --lto-O-1 %t.o 2>&1 | \
+; RUN: FileCheck --check-prefix=INVALIDNEGATIVE %s
+; INVALIDNEGATIVE: invalid optimization level for LTO: -1
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
More information about the llvm-commits
mailing list