Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/abi-call-error-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64d -Wno-implicit-function-declaration" } */
3
4 #include "riscv_vector.h"
5
6 int
7 foo (int8_t *in)
8 {
9 vint8m1_t a = *(vint8m1_t *)in;
10 bar (a); /* { dg-error "RVV type 'vint8m1_t' cannot be passed to an unprototyped function" } */
11 }