diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2020-07-09 22:29:37 +0300 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2020-07-21 18:35:44 +0300 |
commit | eb66e8e7a9142da9640525a9092b909944b30266 (patch) | |
tree | 47c14d31dd4bcb44ffca30b15aeee9eba265f01b /gcc | |
parent | d5a86490962fdd550574eb0d4f5f632883e40d1c (diff) | |
download | gcc-eb66e8e7a9142da9640525a9092b909944b30266.zip gcc-eb66e8e7a9142da9640525a9092b909944b30266.tar.gz gcc-eb66e8e7a9142da9640525a9092b909944b30266.tar.bz2 |
testsuite: Relax pattern to include "packed" targets
The actual warning message depends on the default alignment of the
target. With this update the test correctly passes on AVR and PRU
targets.
gcc/testsuite/ChangeLog:
* gcc.dg/pr53037-1.c: Relax warning pattern.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr53037-1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/pr53037-1.c b/gcc/testsuite/gcc.dg/pr53037-1.c index 3ea5ae6..3f22696 100644 --- a/gcc/testsuite/gcc.dg/pr53037-1.c +++ b/gcc/testsuite/gcc.dg/pr53037-1.c @@ -40,7 +40,7 @@ struct foo5 { int i1; int x __attribute__((warn_if_not_aligned(16))); /* { dg-warning "'x' offset 4 in 'struct foo5' isn't aligned to 16" } */ -}; /* { dg-warning "alignment 4 of 'struct foo5' is less than 16" } */ +}; /* { dg-warning {alignment [0-9]+ of 'struct foo5' is less than 16} } */ struct foo6 { @@ -73,7 +73,7 @@ union bar3 { int i1; int x __attribute__((warn_if_not_aligned(16))); -}; /* { dg-warning "alignment 4 of 'union bar3' is less than 16" } */ +}; /* { dg-warning {alignment [0-9]+ of 'union bar3' is less than 16} } */ union bar4 { |