Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/pr89985.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* Ensure that -Waddress-of-packed-member doesn't emit notes when suppressed via -w, rather than -Wno-address-of-packed-member. */ /* { dg-do compile } */ /* { dg-options "-w" } */ struct a { /* { dg-bogus "defined here" } */ void *ptr; } __attribute__((packed)); struct b { /* { dg-bogus "defined here" } */ void *ptr; }; void test (struct a *p) { struct b *q = (struct b *)p; }