repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
offsetof5.C
blob
40a44068ccc0de36d367ec1f61dd28f78b5e7bf6
1
// { dg-do compile }
2
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 30 June 2003 <nathan@codesourcery.com>
5
6
// PR c++ 11072, DR 273's solution is broken
7
8
#include <stddef.h>
9
10
struct F
11
{
12
char i;
13
char j;
14
};
15
16
static int ary[offsetof (F, j)];
17