blob: c7abbd0043397224d35e034d1c5ab6a3c3e14935 [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() {
6 return foo(4); // expected-error {{function 'bar' and always_inline callee function 'foo' are required to have matching target features}}
7}
8