Clang Project

clang_source_code/test/CodeGen/thinlto-distributed-backend-skip.ll
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-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