[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / Float16.cpp
blobf27c3839854e10fc3b724338e661caa6b48669e8
1 // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux-pc %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE
3 // RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE
4 // RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE
6 #ifdef HAVE
7 // expected-no-diagnostics
8 #endif // HAVE
10 #ifndef HAVE
11 // expected-error@+2{{_Float16 is not supported on this target}}
12 #endif // !HAVE
13 _Float16 f;
15 #ifndef HAVE
16 // expected-error@+2{{invalid suffix 'F16' on floating constant}}
17 #endif // !HAVE
18 const auto g = 1.1F16;