diff options
author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2017-09-08 15:15:00 +0000 |
---|---|---|
committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2017-09-08 15:15:00 +0000 |
commit | cc623ad0712e48cdd6a33dc3d5035382b8c032d6 (patch) | |
tree | 0df8db68c6a2ee7d73c22be172043d203f656d4b /clang/test/Lexer | |
parent | bd4a3617390597e8fcba39427d1b3f2401989aec (diff) | |
download | bcm5719-llvm-cc623ad0712e48cdd6a33dc3d5035382b8c032d6.tar.gz bcm5719-llvm-cc623ad0712e48cdd6a33dc3d5035382b8c032d6.zip |
Recommit "Add _Float16 as a C/C++ source language type"
This is a recommit of r312781; in some build configurations
variable names are omitted, so changed the new regression
test accordingly.
llvm-svn: 312794
Diffstat (limited to 'clang/test/Lexer')
-rw-r--r-- | clang/test/Lexer/half-literal.cpp | 3 |
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}} |