
Starting from AIX 7.2 TL5 SP6 and AIX 7.3 TL2 the system linker supports thinLTO. Reviewed By: ZarkoCA, MaskRay Differential Revision: https://reviews.llvm.org/D155700
11 lines
440 B
C
11 lines
440 B
C
// Test to ensure -emit-llvm and -emit-llvm-bc work when invoking the
|
|
// ThinLTO backend path.
|
|
// RUN: %clang -O2 %s -flto=thin -c -o %t.o
|
|
// RUN: llvm-lto -thinlto -o %t %t.o
|
|
// RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm-bc -o - | llvm-dis -o - | FileCheck %s
|
|
|
|
// CHECK: define{{.*}} void @foo()
|
|
void foo(void) {
|
|
}
|