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-5.c
blob2dc4217ff323282c2cadc3c3be9816d59a34a316
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gc -mabi=lp64d -O3" } */
4 #include "riscv_vector.h"
6 vint32m1_t test_1 ()
8 vint32m1_t a;
9 return a;
12 /* { dg-error "return type 'vint32m1_t' requires the V ISA extension" "" { target { "riscv*-*-*" } } 0 } */