Debian Codegraph @

clang/test/CodeGen/attr-target-version-riscv-invalid.c

raw
1 // RUN: not %clang_cc1 -triple riscv64 -target-feature +i -emit-llvm -o - %s 2>&1 | FileCheck %s --check-prefix=CHECK-UNSUPPORT-OS
2
3 // CHECK-UNSUPPORT-OS: error: function multiversioning is currently only supported on Linux
4 __attribute__((target_version("default"))) int foo(void) {
5 return 2;
6 }
7
8 __attribute__((target_version("arch=+c"))) int foo(void) {
9 return 2;
10 }
11
12
13 int bar() { return foo(); }