Eric Christopher | 2b2d56f | 2015-11-12 00:44:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -S -verify -o - |
2 | int __attribute__((target("avx"), always_inline)) foo(int a) { | ||||
3 | return a + 4; | ||||
4 | } | ||||
5 | int bar() { | ||||
6 | return foo(4); // expected-error {{function 'bar' and always_inline callee function 'foo' are required to have matching target features}} | ||||
7 | } | ||||
8 |