blob: b4f533e5a7321ee0adfb141a014fceb452fa12a5 [file] [log] [blame]
// PR c++/55081
// { dg-do compile }
struct R { int field; } r;
__UINTPTR_TYPE__ *
foo ()
{
static __UINTPTR_TYPE__ array[] = {
sizeof (char),
(reinterpret_cast <__UINTPTR_TYPE__>(&r.field)
- reinterpret_cast <__UINTPTR_TYPE__>(&r)) + 1
};
return array;
}
// { dg-final { scan-assembler-not "_ZGVZ3foovE5array" } }