[PATCH] D146436: [clang][Interp][NFC] Add tests for __fp16
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 20 13:44:05 PDT 2023
tbaeder added inline comments.
================
Comment at: clang/test/AST/Interp/floats.cpp:110-111
+
+ static_assert(~2.0f == 3, ""); // ref-error {{invalid argument type 'float' to unary expression}} \
+ // expected-error {{invalid argument type 'float' to unary expression}}
+
----------------
aaron.ballman wrote:
> This gets rejected before we even get to the constant expression interpreter, right?
Yep, exactly. (Changed this to use a `f16` suffix instead).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146436/new/
https://reviews.llvm.org/D146436
More information about the cfe-commits
mailing list