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
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
bug-1654060.c
blob
6958139bb3214399bc2ac94011261c031b9d518f
1
/*
2
bug-1654060.c
3
4
typedef within function causes syntax error
5
*/
6
7
#include <testfwk.h>
8
typedef
char
mytype1
;
9
typedef
int
mytype2
;
10
11
mytype1 c1
=
'A'
;
12
mytype2 i1
=
12345
;
13
14
void
testTypedef
(
void
)
15
{
16
typedef
int
mytype1
;
17
typedef
char
mytype2
;
18
19
mytype1 i2
=
21435
;
20
mytype2 c2
=
'B'
;
21
22
ASSERT
(
c1
==
'A'
);
23
ASSERT
(
i1
==
12345
);
24
ASSERT
(
c2
==
'B'
);
25
ASSERT
(
i2
==
21435
);
26
}