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-920428-1.c
blob
9cc211366bd289b2dc3e95624690e4a03967cb1e
1
/*
2
920428-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
#endif
10
11
int
12
x
(
const char
*
s
)
13
{
14
char
a
[
1
];
15
const char
*
ss
=
s
;
16
a
[*
s
++] |=
1
;
17
return
(
int
)
ss
+
1
== (
int
)
s
;
18
}
19
20
void
21
testTortureExecute
(
void
)
22
{
23
ASSERT
((
x
(
""
) ==
1
));
24
return
;
25
}
26