1 // ; Check that -flto=thin without -fsplit-lto-unit has EnableSplitLTOUnit = 0 2 // RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-dis -o - | FileCheck %s 3 // CHECK: !{i32 1, !"EnableSplitLTOUnit", i32 0} 4 // 5 // ; Check that -flto=thin with -fsplit-lto-unit has EnableSplitLTOUnit = 1 6 // RUN: %clang_cc1 -flto=thin -fsplit-lto-unit -emit-llvm-bc < %s | llvm-dis -o - | FileCheck %s --check-prefix=SPLIT 7 // SPLIT: !{i32 1, !"EnableSplitLTOUnit", i32 1} 8 // 9 // ; Check that regular LTO has EnableSplitLTOUnit = 1 10 // RUN: %clang_cc1 -flto -triple x86_64-pc-linux-gnu -emit-llvm-bc < %s | llvm-dis -o - | FileCheck %s --implicit-check-not="EnableSplitLTOUnit" --check-prefix=SPLIT 11 12 int main() {} 13