[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Driver / thinlto.c
blobe08435f71cc0b0bea8b0d1d1e3356eee93aca6f5
1 // -flto=thin causes a switch to llvm-bc object files.
2 // RUN: %clang -ccc-print-phases -c %s -flto=thin 2> %t
3 // RUN: FileCheck -check-prefix=CHECK-COMPILE-ACTIONS < %t %s
4 //
5 // CHECK-COMPILE-ACTIONS: 2: compiler, {1}, ir
6 // CHECK-COMPILE-ACTIONS: 3: backend, {2}, lto-bc
8 // RUN: %clang -ccc-print-phases %s -flto=thin 2> %t
9 // RUN: FileCheck -check-prefix=CHECK-COMPILELINK-ACTIONS < %t %s
11 // CHECK-COMPILELINK-ACTIONS: 0: input, "{{.*}}thinlto.c", c
12 // CHECK-COMPILELINK-ACTIONS: 1: preprocessor, {0}, cpp-output
13 // CHECK-COMPILELINK-ACTIONS: 2: compiler, {1}, ir
14 // CHECK-COMPILELINK-ACTIONS: 3: backend, {2}, lto-bc
15 // CHECK-COMPILELINK-ACTIONS: 4: linker, {3}, image