Gitiles
Code Review
Sign In
android-review.linaro.org
/
toolchain
/
gcc-aarch64
/
7d3ad0b7c65dc67005141011191b494d0644fdb6
/
.
/
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
);