summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/target-features-no-error.c
blob: b6283b65ec5acbad105499130145c3ac0e4a3370 (plain)
1
2
3
4
5
6
7
8
9
// 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() {
  return foo(4); // expected-no-diagnostics
}