diff options
Diffstat (limited to 'test/Lexer/half-literal.cpp')
-rw-r--r-- | test/Lexer/half-literal.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Lexer/half-literal.cpp b/test/Lexer/half-literal.cpp index 32af3faef9aa1..8e0034d491dd7 100644 --- a/test/Lexer/half-literal.cpp +++ b/test/Lexer/half-literal.cpp @@ -1,3 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s -float a = 1.0h; // expected-error{{invalid suffix 'h' on floating constant}} +float 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}} float b = 1.0H; // expected-error{{invalid suffix 'H' on floating constant}} + +_Float16 c = 1.f166; // expected-error{{invalid suffix 'f166' on floating constant}} +_Float16 d = 1.f1; // expected-error{{invalid suffix 'f1' on floating constant}} |