Mercurial > hg > CbC > CbC_llvm
view clang/test/Sema/attr-target-unsupported.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -triple mips-linux-gnu -fsyntax-only -verify %s void __attribute__((target("arch=mips1"))) foo(void) {} // expected-error@+3 {{function multiversioning is not supported on the current target}} // expected-note@-2 {{previous declaration is here}} void __attribute__((target("arch=mips2"))) foo(void) {} // expected-error@+2 {{function multiversioning is not supported on the current target}} void __attribute__((target("default"))) bar(void){}