diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-10-07 06:24:25 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-12-29 14:39:38 +0100 |
| commit | c2922bf8df232fd30adff7ee4314fdbe1f73db87 (patch) | |
| tree | 8e2d877734d50266e200235a05ff1fd7cd52720e /validation | |
| parent | a9444f64ed60b14b0cb379091be0e5e05d3fffa8 (diff) | |
| download | sparse-dev-c2922bf8df232fd30adff7ee4314fdbe1f73db87.tar.gz | |
struct-attr: prepare to handle attributes at the end of struct definitions (1)
Type attributes for struct can be placed either just after the
keyword 'struct' or after the '}' ending its definition but this
later case is currently ignored.
Prepare the handling of this by factoring the code common to both
cases in a single place.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/parsing/enum-attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/validation/parsing/enum-attr.c b/validation/parsing/enum-attr.c index a962d8b4..8d851a16 100644 --- a/validation/parsing/enum-attr.c +++ b/validation/parsing/enum-attr.c @@ -21,9 +21,9 @@ enum bad { parsing/enum-attr.c:10:15: error: typename in expression parsing/enum-attr.c:10:15: error: undefined identifier '__attribute__' parsing/enum-attr.c:10:15: error: bad constant expression type -parsing/enum-attr.c:10:22: error: Expected } at end of struct-union-enum-specifier +parsing/enum-attr.c:10:22: error: Expected } at end of specifier parsing/enum-attr.c:10:22: error: got 33 -parsing/enum-attr.c:14:18: error: Expected } at end of struct-union-enum-specifier +parsing/enum-attr.c:14:18: error: Expected } at end of specifier parsing/enum-attr.c:14:18: error: got __attribute__ * check-error-end */ |
