1 // XFAIL: aix
2 
3 // Test to ensure -emit-llvm and -emit-llvm-bc work when invoking the
4 // ThinLTO backend path.
5 // RUN: %clang -O2 %s -flto=thin -c -o %t.o
6 // RUN: llvm-lto -thinlto -o %t %t.o
7 // RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s
8 // RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm-bc -o - | llvm-dis -o - | FileCheck %s
9 
10 // CHECK: define{{.*}} void @foo()
11 void foo(void) {
12 }
13