]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/target-features-error.c
Vendor import of clang trunk r338150:
[FreeBSD/FreeBSD.git] / test / CodeGen / target-features-error.c
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 {{always_inline function 'foo' requires target feature 'avx', but would be inlined into function 'bar' that is compiled without support for 'avx'}}
7 }