clang/test/Sema/arm-mfp8.c
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-arm-none-eabi -target-feature -fp8 %s |
| 2 | |
| 3 | // REQUIRES: aarch64-registered-target |
| 4 | __mfp8 test_cast_from_float(unsigned in) { |
| 5 | return (__mfp8)in; // expected-error {{used type '__mfp8' where arithmetic or pointer type is required}} |
| 6 | } |
| 7 | |
| 8 | unsigned test_cast_to_int(__mfp8 in) { |
| 9 | return (unsigned)in; // expected-error {{operand of type '__mfp8' where arithmetic or pointer type is required}} |
| 10 | } |