llvm-project/clang/test/SemaOpenMP/riscv-vector-with-openmp.c
Yueh-Ting (eop) Chen 77b7b1ad42
[Clang][RISCV] Use Decl for checkRVVTypeSupport (#65778)
Using ValueDecl will cause error for OpenMP. Decl should do the work.
2023-09-11 14:19:34 +08:00

13 lines
237 B
C

// RUN: %clang_cc1 -triple riscv64 -target-feature +v -fsyntax-only \
// RUN: -verify -fopenmp %s
// REQUIRES: riscv-registered-target
// expected-no-diagnostics
void foo() {
#pragma omp parallel
{
__rvv_int32m1_t i32m1;
}
}