repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-941014-1.c
blob
d0cafdfde22811457a84232cf6e4df0f59c34ba3
1
/*
2
941014-1.c from the execute part of the gcc torture suite.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#pragma disable_warning 85
10
#endif
11
12
int
f
(
int
a
,
int
b
) { }
13
14
void
15
testTortureExecute
(
void
)
16
{
17
unsigned long
addr1
;
18
unsigned long
addr2
;
19
20
addr1
= (
unsigned long
) &
f
;
21
addr1
+=
5
;
22
addr2
=
5
+ (
unsigned long
) &
f
;
23
24
if
(
addr1
!=
addr2
)
25
ASSERT
(
0
);
26
return
;
27
}
28