projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
[fw/sdcc]
/
support
/
regression
/
tests
/
bug-1654060.c
1
/*
\r
2
bug-1654060.c
\r
3
\r
4
typedef within function causes syntax error
\r
5
*/
\r
6
\r
7
#include <testfwk.h>
\r
8
typedef char mytype1;
\r
9
typedef int mytype2;
\r
10
\r
11
mytype1 c1 = 'A';
\r
12
mytype2 i1 = 12345;
\r
13
\r
14
void testTypedef(void)
\r
15
{
\r
16
typedef int mytype1;
\r
17
typedef char mytype2;
\r
18
\r
19
mytype1 i2 = 21435;
\r
20
mytype2 c2 = 'B';
\r
21
\r
22
ASSERT(c1 == 'A');
\r
23
ASSERT(i1 == 12345);
\r
24
ASSERT(c1 == 'B');
\r
25
ASSERT(i1 == 21435);
\r
26
}
\r