xref: /llvm-project/clang/test/Driver/cl-thinlto-backend.c (revision 492ce8cc8b0831924f7f0479f37f2e708a8dad3f)
1 // RUN: %clang_cl -c -flto=thin -Fo%t.obj -- %s
2 // RUN: llvm-lto2 run -thinlto-distributed-indexes -o %t.exe %t.obj
3 
4 // -fthinlto_index should be passed to cc1
5 // RUN: %clang_cl -### -c -fthinlto-index=%t.thinlto.bc -Fo%t1.obj \
6 // RUN:     -- %t.obj 2>&1 | FileCheck %s
7 
8 // CHECK: -fthinlto-index=
9 // CHECK: "-x" "ir"
10