[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / g++.dg / other / offsetof3.C
blob8d98242656041bd72c4b379a035583cb0aa20a9d
1 /* Verify that offsetof complains if given a non-standard-layout class.  */
2 /* Copyright (C) 2003 Free Software Foundation, Inc. */
3 /* Contributed by Matt Austern <austern@apple.com> 15 May 2003 */
5 struct X
7   int x, y;
8 protected:
9   int z;
12 typedef X* pX;
13 typedef __SIZE_TYPE__ size_t;
15 size_t yoff = __builtin_offsetof (X, y); /* { dg-error "35:non-standard-layout" } */