2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / other / offsetof5.C
blob40a44068ccc0de36d367ec1f61dd28f78b5e7bf6
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 30 June 2003 <nathan@codesourcery.com>
6 // PR c++ 11072, DR 273's solution is broken
8 #include <stddef.h>
10 struct F
12   char i;
13   char j;
16 static int ary[offsetof (F, j)];