☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
ext
/
offsetof2.C
☽
☼
gcc/testsuite/g++.dg/ext/offsetof2.C
code
plain
raw
1
// PR c++/85662
2
// { dg-do compile { target c++11 } }
3
4
struct S { unsigned long x[31]; };
5
struct T { bool b; S f; };
6
static_assert (__builtin_offsetof (T, f.x[31 - 1]) == __builtin_offsetof (T, f.x[30]), "");