11 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -x c++ -triple x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=nvptx64 -verify %s2// expected-no-diagnostics3 4int foo() {5#pragma omp target6 {7 __fp16 a = -1.0f16;8 }9 return 0;10}11 1// RUN: %clang_cc1 -fsyntax-only -x c++ -triple x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=nvptx64 -verify %s2// expected-no-diagnostics3 4int foo() {5#pragma omp target6 {7 __fp16 a = -1.0f16;8 }9 return 0;10}11