OSDN Git Service

PR c++/28606
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / offsetof1.C
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;