bolt/deps/llvm-18.1.8/clang/test/Driver/native-llvm.c
2025-02-14 19:21:04 +01:00

7 lines
414 B
C

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