projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
A python script to validate compiler diagnostic messages. It can be
[fw/sdcc]
/
support
/
valdiag
/
tests
/
cflow.c
1
2
int x;
3
4
#ifdef TEST0
5
void foo(void)
6
{
7
while (1) ;
8
}
9
#endif
10
11
#ifdef TEST1
12
void foo(void)
13
{
14
while (1) ;
15
x++; /* WARNING(SDCC) */
16
}
17
#endif
18
19
#ifdef TEST2
20
void foo(void)
21
{
22
int y=1;
23
while (y) ; /* WARNING(SDCC) */
24
x++; /* WARNING(SDCC) */
25
}
26
#endif