Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr51628-22.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* PR c/51628. */ /* { dg-do compile } */ /* { dg-options "-O -Wno-incompatible-pointer-types" } */ struct B { int i; }; struct C { struct B b; } __attribute__ ((packed)); int* g4 (struct C *p) { return &p->b; } /* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */