aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbhooks.py
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-11-20 15:41:39 +0100
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-11-21 12:27:21 +0000
commit546e25139bf223a388a06f6dcd458c9a73715e5b (patch)
treeea41155f7d8e7fed0aa1a7f2137c6a3d24cf3970 /gcc/gdbhooks.py
parent0f9752e4b23cab42709824ca8f504b0dcd941c10 (diff)
downloadgcc-546e25139bf223a388a06f6dcd458c9a73715e5b.zip
gcc-546e25139bf223a388a06f6dcd458c9a73715e5b.tar.gz
gcc-546e25139bf223a388a06f6dcd458c9a73715e5b.tar.bz2
Add ast validation check on union variant number
Unions with zero fields are forbidden. Add regression test for empty unions. gcc/rust/ChangeLog: * checks/errors/rust-ast-validation.cc (ASTValidation::visit): Add zero field check during ast validation pass. * checks/errors/rust-ast-validation.h: Add union visit function prototype. gcc/testsuite/ChangeLog: * rust/compile/const_generics_8.rs: Fill the union with dummy values. * rust/compile/empty_union.rs: New test. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/gdbhooks.py')
0 files changed, 0 insertions, 0 deletions