Skip to content

Commit 5b49185

Browse files
committed
Add test
1 parent 2741488 commit 5b49185

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/test/LTO/X86/empty-triple.ll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
; RUN: llvm-as < %s >%t1
2+
; RUN: llvm-lto -o %t2 %t1 2>&1 | FileCheck --allow-empty %s
3+
4+
; The test is to check the triple is set to default one when it's empty.
5+
; Otherwise, an error will be raised by llvm-lto.
6+
7+
; CHECK-NOT: llvm-lto: error: No available targets are compatible with triple ""

0 commit comments

Comments
 (0)