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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-aliasing-bogus-const-ptr-nonconst-ptr.c
blob
8a5dcd8e2a56d8050213b972a4e91302f5140717
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
3
4
const int
*
foo
(
void
)
5
{
6
int
*
i
;
7
const int
**
cpi
= (
const int
**) &
i
;
/* { dg-bogus "const vs. non-const" } */
8
i
=
0
;
9
return
*
cpi
;
10
}