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 | 87063256b97d572c2a6d108d509af2de5034fba3 (patch) | |
tree | df8304065d848624ee69ecf7d2c1f13029dd0fc3 /test/Lexer | |
parent | 8236567f9839ddb87dc2e5ed1cc952d9eb698259 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer')
-rw-r--r-- | test/Lexer/half-literal.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Lexer/half-literal.cpp b/test/Lexer/half-literal.cpp index 32af3faef9..b87eae4a15 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 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}} |