
OpenCL Extension v1.2 s9.5 allows half precision floating point type literals with suffices h or H when cl_khr_fp16 is enabled. Example: half x = 1.0h; Patch by Liu Yaxun (Sam)! Differential Revision: http://reviews.llvm.org/D16865 llvm-svn: 261084
4 lines
208 B
C++
4 lines
208 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
|
|
float a = 1.0h; // expected-error{{invalid suffix 'h' on floating constant}}
|
|
float b = 1.0H; // expected-error{{invalid suffix 'H' on floating constant}}
|