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
/
valdiag
/
tests
/
const.c
1
2
char a;
3
const char ca=2;
4
const char *pca;
5
char * const cpa=&a;
6
7
void test(void)
8
{
9
a = 1;
10
#ifdef TEST1
11
ca = a; /* ERROR */
12
#endif
13
#ifdef TEST2
14
pca = &a;
15
*pca = 2; /* ERROR */
16
#endif
17
#ifdef TEST3
18
*cpa = 3;
19
cpa = &ca; /* ERROR */
20
#endif
21
}