URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [offsetof1.C] - Rev 693
Compare with Previous | Blame | View Log
#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;