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