aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.cc
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-08-15 21:43:19 +0200
committerMark Wielaard <mark@klomp.org>2021-08-15 21:43:19 +0200
commitbb52e25b2d420325ca885c36a00e064e93a23ef4 (patch)
tree2b8d70692116c461fbecbb832ebdf04b31720f72 /gcc/rust/backend/rust-compile-resolve-path.cc
parent52c1cdc9c63baeb090680daf6762c02362f2c6cd (diff)
downloadgcc-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