xref: /llvm-project/clang/test/Driver/native-llvm.c (revision f39c399d9d15efe8309d8aa3d0ecf62205e6c474)
1 // Check that clang reports an error message if -flto without -c is used
2 // on a toolchain that is not expecting it (HasNativeLLVMSupport() is false).
3 
4 // RUN: not %clang -### -flto --target=x86_64-unknown-unknown %s 2>&1 | FileCheck %s
5 // CHECK: error: {{.*}} unable to pass LLVM bit-code files to linker
6 
7 // RUN: %clang -### -flto --target=arm-none-eabi %s 2>&1 | FileCheck /dev/null --implicit-check-not=error:
8