repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
parse
/
offsetof4.C
blob
ba051480d1d63c61ad3e90594179523c9ed848f0
1
// { dg-do compile }
2
// Contributed by Bill Helfinstine <bhelf at flitterfly dot whirpon dot com>
3
// PR c++/14932: Allow subscript operator in offsetof
4
5
#include <cstddef>
6
7
struct A
8
{
9
int bar;
10
int foo[22];
11
};
12
13
const int off = offsetof(A, foo[12]);