1214265bcSPaul Robinson // Check that clang reports an error message if -flto without -c is used 2214265bcSPaul Robinson // on a toolchain that is not expecting it (HasNativeLLVMSupport() is false). 3214265bcSPaul Robinson 4*f39c399dSFangrui Song // RUN: not %clang -### -flto --target=x86_64-unknown-unknown %s 2>&1 | FileCheck %s 5214265bcSPaul Robinson // CHECK: error: {{.*}} unable to pass LLVM bit-code files to linker 6ab9b2fe2SFangrui Song 7ab9b2fe2SFangrui Song // RUN: %clang -### -flto --target=arm-none-eabi %s 2>&1 | FileCheck /dev/null --implicit-check-not=error: 8