aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/LTO/empty-triple.ll
blob: b4af8607ac353209e7c4f8ef7ffd8110888c8e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-as < %s >%t1
; RUN: llvm-lto -exported-symbol=main -filetype=asm -o - %t1  2>&1 | FileCheck %s

; The test is to check the triple is set to default one when it's empty.
; Otherwise, an error will be raised by llvm-lto.

; CHECK-LABEL: main
; CHECK-NOT: error
define void @main() {
entry:
  ret void
}