blob: 518f6e6189ed0de55de99f29cac319e62de6fbc1 [file] [log] [blame]
Eric Christopher2b2d56f2015-11-12 00:44:12 +00001// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -S -verify -o -
2int __attribute__((target("avx"), always_inline)) foo(int a) {
3 return a + 4;
4}
5int bar() {
Eric Christopherce836772015-11-14 02:38:37 +00006 return foo(4); // expected-error {{always_inline function 'foo' requires target feature 'sse4.2', but would be inlined into function 'bar' that is compiled without support for 'sse4.2'}}
Eric Christopher2b2d56f2015-11-12 00:44:12 +00007}
8