| 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 |
| 5 | |
| 6 | #ifdef HAVE |
| 7 | // expected-no-diagnostics |
| 8 | #else |
| 9 | // expected-error@+2{{_Float16 is not supported on this target}} |
| 10 | #endif // HAVE |
| 11 | _Float16 f; |
| 12 |