diff options
author | Mark Wielaard <mark@klomp.org> | 2021-08-15 21:43:19 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-08-15 21:43:19 +0200 |
commit | bb52e25b2d420325ca885c36a00e064e93a23ef4 (patch) | |
tree | 2b8d70692116c461fbecbb832ebdf04b31720f72 /gcc/rust/backend/rust-compile-resolve-path.cc | |
parent | 52c1cdc9c63baeb090680daf6762c02362f2c6cd (diff) | |
download | gcc-bb52e25b2d420325ca885c36a00e064e93a23ef4.zip gcc-bb52e25b2d420325ca885c36a00e064e93a23ef4.tar.gz gcc-bb52e25b2d420325ca885c36a00e064e93a23ef4.tar.bz2 |
Add support for const bool and const float
Handle BOOL and FLOAT in ConstFoldExpr::visit (HIR::LiteralExpr) to
make it possible to create const bool, f32 and f64 constants. Add a
new testcase "primconsts.rs". Not yet handled are const char and &str
types.
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions