Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Sema/attr-target-unsupported.c @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -triple mips-linux-gnu -fsyntax-only -verify %s |
2 | |
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) {} | |
9 | |
10 // expected-error@+2 {{function multiversioning is not supported on the current target}} | |
11 void __attribute__((target("default"))) | |
12 bar(void){} |