bolt/deps/llvm-18.1.8/clang/test/Driver/x86-mabi.c

14 lines
590 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang -### --target=x86_64-windows-msvc -mabi=ms -S %s 2>&1 | FileCheck %s
// RUN: not %clang -### --target=i386-unknown-linux -mabi=ms -S %s 2>&1 | FileCheck --check-prefix=ERR %s
// RUN: not %clang -### --target=x86_64-windows-msvc -mabi=sysv -S %s 2>&1 | FileCheck --check-prefix=ERR %s
// RUN: %clang -### --target=i386-unknown-linux -mabi=sysv -S %s 2>&1 | FileCheck %s
// RUN: %clang -### --target=x86_64-windows-gnu -mabi=ms -S %s 2>&1 | FileCheck %s
// CHECK-NOT: {{error|warning}}:
// ERR: error: unsupported option '-mabi=' for target '{{.*}}'
int f() {
return 0;
}