bolt/deps/llvm-18.1.8/clang/test/CodeGen/target-features-no-error.c
2025-02-14 19:21:04 +01:00

9 lines
322 B
C

// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -emit-llvm -o - -target-feature -sse2
// Verify that negative features don't cause additional requirements on the inline function.
int __attribute__((target("sse"), always_inline)) foo(int a) {
return a + 4;
}
int bar(void) {
return foo(4); // expected-no-diagnostics
}