Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/pr51628-32.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 /* PR c/51628. */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O" } */ | |
4 | |
5 struct A | |
6 { | |
7 int i; | |
8 }; | |
9 | |
10 struct B | |
11 { | |
12 char c; | |
13 __attribute ((packed)) struct A ar[4]; | |
14 }; | |
15 | |
16 struct B b; | |
17 | |
18 int *p = &b.ar[1].i; | |
19 /* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */ |