RISC-V: Allow RVV intrinsic when function target("arch=+v")
[official-gcc.git] / gcc / testsuite / gcc.target / riscv / rvv / base / target_attribute_v_with_intrinsic-6.c
blob562bb509e9edf1795a343dd2608d684530990e74
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gc -mabi=lp64d -O3" } */
4 #include "riscv_vector.h"
6 int
7 __attribute__((riscv_vector_cc))
8 test_1 (int a)
10 return a + 1;
12 /* { dg-error "function attribute 'riscv_vector_cc' requires the V ISA extension" "" { target { "riscv*-*-*" } } 0 } */