[TableGen] Fix validateOperandClass for non Phyical Reg (#118146)
[llvm-project.git] / clang / test / Sema / attr-target-unsupported.c
blob8e23fcc17ebd8be6318fe3e19189857d35177acb
1 // RUN: %clang_cc1 -triple mips-linux-gnu -fsyntax-only -verify %s
3 void __attribute__((target("arch=mips1")))
4 foo(void) {}
5 // expected-error@+3 {{function multiversioning is not supported on the current target}}
6 // expected-note@-2 {{previous declaration is here}}
7 void __attribute__((target("arch=mips2")))
8 foo(void) {}
10 // expected-error@+2 {{function multiversioning is not supported on the current target}}
11 void __attribute__((target("default")))
12 bar(void){}