]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr51628-24.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr51628-24.c
1 /* PR c/51628. */
2 /* { dg-do compile } */
3 /* { dg-options "-O -Wno-incompatible-pointer-types" } */
4
5 struct A {
6 int i;
7 } __attribute__ ((packed));
8
9 short* f2 (struct A *p) { return &p->i; }
10 /* { dg-warning "may result in an unaligned pointer value" "" { target { ! default_packed } } .-1 } */