test/harness/parse_dg: remove C23-illegal instances of bool#105
Merged
Conversation
The test suite has been failing after visq#104 since language-c would reject `bool` occurring in places where a keyword may not (as would a C compiler/preprocessor). gcc_dg_pre.tar.bz2 contains C preprocessor output generated with older versions of GCC using older versions of the C standard. In particular `bool` is used as a variable name and as a (custom) type name in some of preprocessor outputs. Since the tarball doesn't contain the original C files the output was generated from, I resorted to haphazardly editing the outputs. I made the following modifications: - pr38948.i: removed `typedef unsigned char bool;` - pr37684.i: removed `typedef int bool;` - enum-mode-2.i: renamed `typedef … bool;` to `typedef … my_bool` - Wcxx-compat-2.i: removed `int bool;` declaration
Collaborator
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The test suite has been failing after #104 since language-c would reject
booloccurring in places where a keyword may not (as would a C compiler/preprocessor).gcc_dg_pre.tar.bz2 contains C preprocessor output generated with older versions of GCC using older versions of the C standard. In particular
boolis used as a variable name and as a (custom) type name in some of preprocessor outputs.Since the tarball doesn't contain the original C files the output was generated from, I resorted to haphazardly editing the outputs. I made the following modifications:
typedef unsigned char bool;typedef int bool;typedef … bool;totypedef … my_boolint bool;declaration