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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
const-addr-expr-1.c
blob
dc34368cb4a4bb3a1c2ab1c40d9215e2041a5ee7
1
#include <stdio.h>
2
#include <stdlib.h>
3
extern
void
abort
();
4
5
typedef
struct
foo
6
{
7
int
uaattrid
;
8
char
*
name
;
9
}
FOO
;
10
11
FOO Upgrade_items
[] =
12
{
13
{
1
,
"1"
},
14
{
2
,
"2"
},
15
{
0
,
NULL
}
16
};
17
18
int
*
Upgd_minor_ID
=
19
(
int
*) &((
Upgrade_items
+
1
)->
uaattrid
);
20
21
int
*
Upgd_minor_ID1
=
22
(
int
*) &((
Upgrade_items
)->
uaattrid
);
23
24
int
25
main
(
int
argc
,
char
**
argv
)
26
{
27
if
(*
Upgd_minor_ID
!=
2
)
28
abort
();
29
30
if
(*
Upgd_minor_ID1
!=
1
)
31
abort
();
32
return
0
;
33
}