[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / Float16.cpp
blob61b02a50687b9b7594a38a79d6f155f3a233639a
1 // RUN: %clang_cc1 -fsyntax-only -verify -triple i686-linux-pc %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -triple i686-linux-pc -target-feature +sse2 %s -DHAVE
3 // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux-pc %s -DHAVE
4 // RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE
5 // RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE
6 // RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE
8 #ifdef HAVE
9 // expected-no-diagnostics
10 #endif // HAVE
12 #ifndef HAVE
13 // expected-error@+2{{_Float16 is not supported on this target}}
14 #endif // !HAVE
15 _Float16 f;
17 #ifndef HAVE
18 // expected-error@+2{{invalid suffix 'F16' on floating constant}}
19 #endif // !HAVE
20 const auto g = 1.1F16;