llvm-capstone/clang/test/OpenMP/float16_sema.cpp
2023-01-19 22:24:38 -05:00

11 lines
223 B
C++

// RUN: %clang_cc1 -fsyntax-only -x c++ -triple x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=nvptx64 -verify %s
// expected-no-diagnostics
int foo() {
#pragma omp target
{
__fp16 a = -1.0f16;
}
return 0;
}