blob: 7c079ad5c54834ca967478975656c540c1a88e27 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
int foo(int* p) {
const int& q = *p; /* { dg-bogus "const vs. non-const" } */
*p = 1;
return q;
}