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