blob: 955b8203f446b9ee73239e68cff230abdc2cd3da [file] [log] [blame]
// PR c++/101210
// { dg-do run }
// { dg-options "-fsanitize=null,alignment -fno-sanitize-recover=null,alignment" }
int v[2];
int
main ()
{
int x;
int &y = x;
v[0] = reinterpret_cast<__INTPTR_TYPE__>(&y) == 0;
v[1] = reinterpret_cast<__INTPTR_TYPE__>(&y) == 1;
}