[ELF] Reorder SectionBase/InputSectionBase members
[llvm-project.git] / clang / test / Driver / thinlto.c
blob06424524b5dcaf3b739c34061f0875f1637e67fc
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 %if target={{.*-windows-msvc.*}} %{ -fuse-ld=lld %} -flto=thin %s 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