[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / CodeGen / attr-target-version-riscv-invalid.c
blob0948b3bfd9ef32384b4dc490ab9766bf826b05e0
1 // RUN: not %clang_cc1 -triple riscv64 -target-feature +i -emit-llvm -o - %s 2>&1 | FileCheck %s --check-prefix=CHECK-UNSUPPORT-OS
3 // CHECK-UNSUPPORT-OS: error: function multiversioning is currently only supported on Linux
4 __attribute__((target_version("default"))) int foo(void) {
5 return 2;
8 __attribute__((target_version("arch=+c"))) int foo(void) {
9 return 2;
13 int bar() { return foo(); }