summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/offsetof3.C
blob: 905e5f58a1f40fc343b4aa25d268826db5e233b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/13529

#include <cstddef>

struct A { int i; };
struct B { A a; };

int main()
{
  return offsetof(B,a.i) != 0;
}