You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
664 B
19 lines
664 B
// 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
|
|
|
|
#ifndef HAVE
|
|
// expected-error@+2{{_Float16 is not supported on this target}}
|
|
#endif // HAVE
|
|
_Float16 f;
|
|
|
|
#ifdef HAVE
|
|
// FIXME: Should this be valid?
|
|
_Complex _Float16 a; // expected-error {{'_Complex _Float16' is invalid}}
|
|
void builtin_complex() {
|
|
_Float16 a = 0;
|
|
(void)__builtin_complex(a, a); // expected-error {{'_Complex _Float16' is invalid}}
|
|
}
|
|
#endif
|