projects
/
debian
/
cc1111
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.9.0
[debian/cc1111]
/
support
/
regression
/
tests
/
bug-1654060.c
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
}