Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaCXX/Float16.cpp @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux-pc %s // RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE // RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE // RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE #ifdef HAVE // expected-no-diagnostics #endif // HAVE #ifndef HAVE // expected-error@+2{{_Float16 is not supported on this target}} #endif // !HAVE _Float16 f; #ifndef HAVE // expected-error@+2{{invalid suffix 'F16' on floating constant}} #endif // !HAVE const auto g = 1.1F16;