summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/parse/offsetof2.C
blob: 4552d39fea2b1bf06709bb7095a8142b159ecf64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <cstddef>

struct choke_me
{
    int size;
    char storage[1];
};

struct offset_is_broken
{
    static const int offset = offsetof(choke_me, storage);
};
OpenPOWER on IntegriCloud