diff options
Diffstat (limited to 'test/Sema/Float16.c')
-rw-r--r-- | test/Sema/Float16.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Sema/Float16.c b/test/Sema/Float16.c new file mode 100644 index 0000000000..bdfb01702c --- /dev/null +++ b/test/Sema/Float16.c @@ -0,0 +1,11 @@ +// 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 + +#ifdef HAVE +// expected-no-diagnostics +#else +// expected-error@+2{{_Float16 is not supported on this target}} +#endif // HAVE +_Float16 f; |