1 ! Test that the output is LLVM bitcode for LTO and not a native objectfile by
2 ! disassembling it to LLVM IR.
3 ! Right now there is nothing special about it and it is similar to non-lto IR,
4 ! more work is needed to add things like module summaries.
6 ! RUN: %flang %s -c -o - | not llvm-dis -o %t
7 ! RUN: %flang_fc1 %s -emit-llvm-bc -o - | llvm-dis -o - | FileCheck %s
9 ! RUN: %flang -flto %s -c -o - | llvm-dis -o - | FileCheck %s
10 ! RUN: %flang -flto=thin %s -c -o - | llvm-dis -o - | FileCheck %s
12 ! CHECK: define void @_QQmain()
13 ! CHECK-NEXT: ret void
16 ! CHECK-NOT: ^0 = module:
17 ! CHECK-NOT: ^1 = gv: (name:
18 ! CHECK-NOT: ^2 = flags:
19 ! CHECK-NOT: ^3 = blockcount: