Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
offsetof7.C
blob: 0ce2ee02aa8639907a2ae65c0581c16d70585a23 [
file
] [
log
] [
blame
]
// PR c++/50608
// Testcase by <dberger@oubliette.org>
// { dg-do compile }
struct
A
{
int
offset
;
};
struct
B
:
public
A
{
};
struct
C
{
A a
;
B b
;
};
int
fails
=
__builtin_offsetof
(
C
,
b
.
offset
);