Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
offsetof1.C
blob: ae9d3110aba67c5dc0bdd5fb8dc66e6659decba6 [
file
] [
log
] [
blame
]
#include
<stddef.h>
template
<bool>
struct
StaticAssert
;
template
<>
struct
StaticAssert
<true>
{};
struct
MyPOD
{
int
a
;
int
b
;
int
c
;
};
StaticAssert
<(
offsetof
(
MyPOD
,
a
)
==
0
)>
s
;