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-pr77767.c
blob
41cdebc09882d2ed8bc8f335afdfe4c2e50250b5
1
/*
2
pr77767.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
/* PR c/77767 */
12
13
#if 0
// Enable when SDCC allows non-constant expression in array parms
14
void
15
foo
(
int
a
,
int
b
[
a
++],
int
c
,
int
d
[
c
++])
16
{
17
if
(
a
!=
2
||
c
!=
2
)
18
ASSERT
(
0
);
19
}
20
#endif
21
22
void
23
testTortureExecute
(
void
)
24
{
25
#if 0
26
int
e
[
10
];
27
foo
(
1
,
e
,
1
,
e
);
28
return
;
29
#endif
30
}