Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/Wattributes-10.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/gcc.dg/Wattributes-10.c Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/gcc.dg/Wattributes-10.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,7 +1,8 @@ /* PR middle-end/86453 - error: type variant differs by TYPE_PACKED in free_lang_data since r255469 { dg-do compile } - { dg-options "-Wall -ftrack-macro-expansion=0" } */ + { dg-options "-Wall -ftrack-macro-expansion=0" } + { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ #define A(expr) do { int a[1 - 2 * !(expr)]; (void)&a; } while (0) @@ -12,7 +13,8 @@ int* __attribute__ ((aligned (16), packed)) qaligned; /* { dg-warning "ignoring attribute .packed. because it conflicts with attribute .aligned." } */ int* __attribute__ ((packed, aligned (16))) qpacked; /* { dg-warning ".packed. attribute ignored for type .int \\\*." } */ -} s; +} s; /* { dg-error "alignment of 's' is greater" "" { target pdp11*-*-* } } */ + void test (void) {