annotate clang/test/Sema/attr-target-unsupported.c @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple mips-linux-gnu -fsyntax-only -verify %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 void __attribute__((target("arch=mips1")))
anatofuz
parents:
diff changeset
4 foo(void) {}
anatofuz
parents:
diff changeset
5 // expected-error@+3 {{function multiversioning is not supported on the current target}}
anatofuz
parents:
diff changeset
6 // expected-note@-2 {{previous declaration is here}}
anatofuz
parents:
diff changeset
7 void __attribute__((target("arch=mips2")))
anatofuz
parents:
diff changeset
8 foo(void) {}
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 // expected-error@+2 {{function multiversioning is not supported on the current target}}
anatofuz
parents:
diff changeset
11 void __attribute__((target("default")))
anatofuz
parents:
diff changeset
12 bar(void){}