aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-general.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-08-16 18:44:47 +0200
committerMark Wielaard <mark@klomp.org>2021-08-16 18:44:47 +0200
commit4f02b38f6ab17a49d9f6a681b1fefb89c12304d9 (patch)
tree8457babd13a32a3be52c049149978034e4892345 /gcc/omp-general.c
parent52c1cdc9c63baeb090680daf6762c02362f2c6cd (diff)
downloadgcc-4f02b38f6ab17a49d9f6a681b1fefb89c12304d9.zip
gcc-4f02b38f6ab17a49d9f6a681b1fefb89c12304d9.tar.gz
gcc-4f02b38f6ab17a49d9f6a681b1fefb89c12304d9.tar.bz2
Allow bool and char to be cast as any integer type
bools and chars can be cast to any integer type, but not to floats or each other. Adjust the BoolCastRule and CharCastRule to allow these casts. Add a postive test "as_bool_char.rs" and negative test "bad_as_bool_char.rs" to check the correct casts are accepted and the illegal casts produce errors. Resolves: https://github.com/Rust-GCC/gccrs/issues/629
Diffstat (limited to 'gcc/omp-general.c')
0 files changed, 0 insertions, 0 deletions