brintos

brintos / llvm-project-archived public Read only

0
0
Text · 336 B · 4086eec Raw
9 lines · c
1// RUN: not %clang_cc1 -triple riscv64 -target-feature +i -emit-llvm -o - %s 2>&1 | FileCheck %s --check-prefix=CHECK-UNSUPPORT-OS2 3// CHECK-UNSUPPORT-OS: error: function multiversioning is currently only supported on Linux4__attribute__((target_clones("default", "arch=+c"))) int foo(void) {5  return 2;6}7 8int bar() { return foo(); }9