Clang Project

clang_source_code/test/Sema/attr-target-unsupported.c
1// RUN: %clang_cc1 -triple mips-linux-gnu  -fsyntax-only -verify %s
2
3void __attribute__((target("arch=mips1")))
4foo(void) {}
5// expected-error@+3 {{function multiversioning is not supported on the current target}}
6// expected-note@-2 {{previous declaration is here}}
7void __attribute__((target("arch=mips2")))
8foo(void) {}
9
10// expected-error@+2 {{function multiversioning is not supported on the current target}}
11void __attribute__((target("default")))
12bar(void){}
13