blob: b6283b65ec5acbad105499130145c3ac0e4a3370 [file] [log] [blame]
Eric Christopherb7bbc532015-11-16 18:29:59 +00001// 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.
4int __attribute__((target("sse"), always_inline)) foo(int a) {
5 return a + 4;
6}
7int bar() {
8 return foo(4); // expected-no-diagnostics
9}