Debian Codegraph @

gcc/testsuite/g++.dg/parse/offsetof1.C

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;