Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / attr-target-clones-riscv-invalid.c
blob4086eec31cc6a2330ca48dce327590352fd76edd
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_clones("default", "arch=+c"))) int foo(void) {
5 return 2;
8 int bar() { return foo(); }