[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Lexer / opencl-half-literal.cl
blob42ca5146b1fb5ca86f958c2700379f6ba8ae1856
1 // RUN: %clang_cc1 %s -fsyntax-only -verify -triple spir-unknown-unknown
3 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
5 constant half a = 1.0h;
6 constant half aa = 1.0H;
7 constant half b = 1.0hh; // expected-error{{invalid suffix 'hh' on floating constant}}
8 constant half c = 1.0fh; // expected-error{{invalid suffix 'fh' on floating constant}}
9 constant half d = 1.0lh; // expected-error{{invalid suffix 'lh' on floating constant}}
10 constant half e = 1.0hf; // expected-error{{invalid suffix 'hf' on floating constant}}