Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / Float16.c
blob9269a0ded4eb9bf00d4b767e02761d6d8ce72e74
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
7 // RUN: %clang_cc1 -fsyntax-only -verify -triple riscv32 %s -DHAVE
8 // RUN: %clang_cc1 -fsyntax-only -verify -triple riscv64 %s -DHAVE
10 #ifndef HAVE
11 // expected-error@+2{{_Float16 is not supported on this target}}
12 #endif // HAVE
13 _Float16 f;
15 #ifdef HAVE
16 _Complex _Float16 a;
17 void builtin_complex(void) {
18 _Float16 a = 0;
19 (void)__builtin_complex(a, a); // expected-error {{'_Complex _Float16' is invalid}}
21 #endif