diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2023-02-24 20:12:46 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2023-03-07 01:14:30 +0100 |
commit | 1d92cd072ef4b2e4f309eefbcfe64c368d220f29 (patch) | |
tree | 2acf0785a97f82a979327d10fd6177c08088d6d0 | |
parent | 82318c57607ca983742630c9884e5d30920a3ce1 (diff) | |
download | gcc-1d92cd072ef4b2e4f309eefbcfe64c368d220f29.zip gcc-1d92cd072ef4b2e4f309eefbcfe64c368d220f29.tar.gz gcc-1d92cd072ef4b2e4f309eefbcfe64c368d220f29.tar.bz2 |
testsuite: Fix gcc.dg/analyzer/allocation-size-multiline-3.c
For 32-bit newlib targets (such as cris-elf and pru-elf),
that int32_t is "long int". See other regexps in the
testsuite matching "aka (long )?int" (with single-quotes
where needed) where the pattern in
allocation-size-multiline-3.c matches plain "int". Uses the
special syntax recently introduced for multi-line patterns.
testsuite:
* gcc.dg/analyzer/allocation-size-multiline-3.c: Handle
int32_t being "long int".
-rw-r--r-- | gcc/testsuite/gcc.dg/analyzer/allocation-size-multiline-3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/analyzer/allocation-size-multiline-3.c b/gcc/testsuite/gcc.dg/analyzer/allocation-size-multiline-3.c index e27364a..b3de582 100644 --- a/gcc/testsuite/gcc.dg/analyzer/allocation-size-multiline-3.c +++ b/gcc/testsuite/gcc.dg/analyzer/allocation-size-multiline-3.c @@ -21,7 +21,7 @@ void test_constant_99 (void) | ^~~~~~ | | | (1) allocated 99 bytes here - | (2) assigned to 'int32_t *' {aka 'int *'} here; 'sizeof (int32_t {aka int})' is '4' + | (2) assigned to 'int32_t *' {aka '{re:long :re?}int *'} here; 'sizeof (int32_t {aka {re:long :re?}int})' is '4' | { dg-end-multiline-output "" } */ @@ -39,6 +39,6 @@ void test_symbolic (int n) | ^~~~~~ | | | (1) allocated 'n * 2' bytes here - | (2) assigned to 'int32_t *' {aka 'int *'} here; 'sizeof (int32_t {aka int})' is '4' + | (2) assigned to 'int32_t *' {aka '{re:long :re?}int *'} here; 'sizeof (int32_t {aka {re:long :re?}int})' is '4' | { dg-end-multiline-output "" } */ |