☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
parse
/
offsetof1.C
☽
☼
gcc/testsuite/g++.dg/parse/offsetof1.C
code
plain
raw
1
#include <stddef.h>
2
3
template <bool> struct StaticAssert;
4
template <> struct StaticAssert<true> {};
5
6
struct MyPOD
7
{
8
int a; int b; int c;
9
};
10
11
StaticAssert<(offsetof(MyPOD, a) == 0)> s;