24 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify -triple i686-linux-pc %s2// RUN: %clang_cc1 -fsyntax-only -verify -triple i686-linux-pc -target-feature +sse2 %s -DHAVE3// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux-pc %s -DHAVE4// RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE5// RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE6// RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE7// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv32 %s -DHAVE8// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv64 %s -DHAVE9// RUN: %clang_cc1 -fsyntax-only -verify -triple s390x-ibm-zos %s10 11#ifndef HAVE12// expected-error@+2{{_Float16 is not supported on this target}}13#endif // HAVE14_Float16 f;15 16#ifdef HAVE17// expected-no-diagnostics18_Complex _Float16 a;19void builtin_complex(void) {20 _Float16 a = 0;21 (void)__builtin_complex(a, a);22}23#endif24