repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85462
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr68270.C
blob
441fca3e85fd97c749c117c73a4e248e28055e91
1
/* PR71633 */
2
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } } */
3
/* { dg-options "-Werror=chkp -mmpx -fcheck-pointer-bounds -O1 -fchkp-flexible-struct-trailing-arrays" } */
4
5
struct a
6
{
7
struct
8
{
9
int e[1];
10
} f;
11
};
12
13
int g(a *ptr)
14
{
15
return ptr->f.e[1];
16
}