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
/
declafterstmt.c
blob
baf468cb59ea4bfcebe16029c6618382fb3eddcf
1
/** Tests declarations after statements within the same block (C99).
2
*/
3
#include <testfwk.h>
4
5
void
6
testDeclAfterStmt
(
void
)
7
{
8
int
a
=
0
;
9
a
++;
10
int
b
=
1
;
11
{
12
int
a
=
0
;
13
}
14
int
c
=
a
+
b
;
15
ASSERT
(
c
==
2
);
16
}