xref: /llvm-project/clang/test/SemaCUDA/float16.cu (revision 88e2bb40921f35663e16e45514de20018615c36f)
1 // RUN: %clang_cc1 -fsyntax-only -triple x86_64 -aux-triple amdgcn -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -triple x86_64 -aux-triple spirv64-amd-amdhsa -verify %s
3 // RUN: %clang_cc1 -fsyntax-only -triple x86_64 -aux-triple nvptx64 -verify %s
4 // expected-no-diagnostics
5 #include "Inputs/cuda.h"
6 
7 __device__ void f(_Float16 x);
8 
9 __device__ _Float16 x = 1.0f16;
10