brintos

brintos / llvm-project-archived public Read only

0
0
Text · 526 B · 43d0b92 Raw
7 lines · cpp
1// RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify -pedantic -triple aarch64-linux-gnu %s2float a = 1.0h; // expected-error{{no matching literal operator for call to 'operator""h' with argument of type 'long double' or 'const char *', and no matching literal operator template}}3float b = 1.0H; // expected-error{{invalid suffix 'H' on floating constant}}4 5_Float16 c = 1.f166; // expected-error{{invalid suffix 'f166' on floating constant}}6_Float16 d = 1.f1;   // expected-error{{invalid suffix 'f1' on floating constant}}7