blob: 8a5dcd8e2a56d8050213b972a4e91302f5140717 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* { dg-do compile } */
/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
const int* foo (void)
{
int *i;
const int** cpi = (const int**) &i; /* { dg-bogus "const vs. non-const" } */
i = 0;
return *cpi;
}
|