diff options
author | Erich Keane <erich.keane@intel.com> | 2019-01-25 17:27:57 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2019-01-25 17:27:57 +0000 |
commit | c92e6f5affe17d94518ab62668d87ef7ee98575c (patch) | |
tree | 43d3984a259924f69d66d72eb5fbbdbeccaeae5b /test/Lexer | |
parent | f87ccb46d7c3ef0017ad5b40f3de96b717dce6b3 (diff) | |
download | clang-c92e6f5affe17d94518ab62668d87ef7ee98575c.tar.gz |
Disable _Float16 for non ARM/SPIR Targets
As Discussed here:
http://lists.llvm.org/pipermail/llvm-dev/2019-January/129543.html
There are problems exposing the _Float16 type on architectures that
haven't defined the ABI/ISel for the type yet, so we're temporarily
disabling the type and making it opt-in.
Differential Revision: https://reviews.llvm.org/D57188
Change-Id: I5db7366dedf1deb9485adb8948b1deb7e612a736
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer')
-rw-r--r-- | test/Lexer/half-literal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Lexer/half-literal.cpp b/test/Lexer/half-literal.cpp index 8e0034d491..2f1cf9589f 100644 --- a/test/Lexer/half-literal.cpp +++ b/test/Lexer/half-literal.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s +// RUN: %clang_cc1 -fsyntax-only -verify -pedantic -triple aarch64-linux-gnu %s 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}} |