xref: /aosp_15_r20/external/clang/test/CodeGen/target-features-no-error.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -emit-llvm -o - -target-feature -sse2
2 
3 // Verify that negative features don't cause additional requirements on the inline function.
foo(int a)4 int __attribute__((target("sse"), always_inline)) foo(int a) {
5   return a + 4;
6 }
bar()7 int bar() {
8   return foo(4); // expected-no-diagnostics
9 }
10