From cc623ad0712e48cdd6a33dc3d5035382b8c032d6 Mon Sep 17 00:00:00 2001 From: Sjoerd Meijer Date: Fri, 8 Sep 2017 15:15:00 +0000 Subject: 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 --- clang/test/Lexer/half-literal.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/test/Lexer') 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}} -- cgit v1.2.3