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
/
init
/
struct3.C
blob
6b1805c66ba972312201e5106b7dc29169cc883d
1
/* PR c++/23180. */
2
/* Initialize a global variable with an expression that attempts to use
3
pointer arithmetic to calculate a structure field offset. */
4
5
struct Track {
6
char soundName[15];
7
};
8
9
struct SaveLoadEntry {
10
int offs;
11
int type;
12
int size;
13
};
14
15
int foobar = ((long) (& ((Track *) 42)->soundName[0])) - 42;