blob: b4f533e5a7321ee0adfb141a014fceb452fa12a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// 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" } }
|