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 | 1d1d438e8e721d8cef58b638fc304c2ff87094f0 (patch) | |
tree | 04258ca8e40009042378edaf780fa54c6676d22b /clang/test/Lexer | |
parent | a04584b095c9fda0730b1f24466e4d5e3e4d2f14 (diff) | |
download | bcm5719-llvm-1d1d438e8e721d8cef58b638fc304c2ff87094f0.tar.gz bcm5719-llvm-1d1d438e8e721d8cef58b638fc304c2ff87094f0.zip |
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
llvm-svn: 352221
Diffstat (limited to 'clang/test/Lexer')
-rw-r--r-- | clang/test/Lexer/half-literal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Lexer/half-literal.cpp b/clang/test/Lexer/half-literal.cpp index 8e0034d491d..2f1cf9589fa 100644 --- a/clang/test/Lexer/half-literal.cpp +++ b/clang/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}} |