xref: /llvm-project/clang/test/CodeGen/thinlto-distributed-backend-skip.ll (revision 7b1d793713cf9ed9ab719f33b332f9c66a1fc5cc)
1; REQUIRES: x86-registered-target
2
3; Check that ThinLTO backend respects "SkipModuleByDistributedBackend"
4; flag which can be set by indexing.
5
6; RUN: opt -thinlto-bc -o %t.o %s
7
8; RUN: %clang_cc1 -triple x86_64-grtev4-linux-gnu \
9; RUN:   -fthinlto-index=%S/Inputs/thinlto-distributed-backend-skip.bc \
10; RUN:   -emit-llvm -o - -x ir %t.o | FileCheck %s
11
12target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
13target triple = "x86_64-grtev4-linux-gnu"
14
15; CHECK: "empty"
16; CHECK: target triple =
17; CHECK-NOT: @main
18define i32 @main() {
19entry:
20  ret i32 0
21}
22