summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/half-literal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/half-literal.cpp')
-rw-r--r--clang/test/Lexer/half-literal.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Lexer/half-literal.cpp b/clang/test/Lexer/half-literal.cpp
index 32af3faef9a..b87eae4a152 100644
--- a/clang/test/Lexer/half-literal.cpp
+++ b/clang/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 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}}
OpenPOWER on IntegriCloud