You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
348 B
9 lines
348 B
// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -S -verify -o -
|
|
int __attribute__((target("avx"), always_inline)) foo(int a) {
|
|
return a + 4;
|
|
}
|
|
int bar() {
|
|
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'}}
|
|
}
|
|
|