xref: /llvm-project/llvm/test/CodeGen/X86/fat-lto-section.ll (revision 446f66d685c2470bc7744b1d1538c4728e838e43)
1;; Ensure that the .llvm.lto section has SHT_EXCLUDE set.
2; RUN: opt --mtriple x86_64-unknown-linux-gnu < %s -passes="embed-bitcode<thinlto;emit-summary>" -S \
3; RUN:   | llc --mtriple x86_64-unknown-linux-gnu -filetype=obj \
4; RUN:   | llvm-readelf - --sections \
5; RUN:   | FileCheck %s --check-prefix=EXCLUDE
6
7; EXCLUDE: Name               Type     {{.*}} ES Flg Lk Inf Al
8; EXCLUDE: .llvm.lto          LLVM_LTO {{.*}} 00   E  0   0  1
9
10@a = global i32 1
11