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
/
bug3029630.c
blob
632c3a619c5dced34e5fbb5210e7f929e8d76c37
1
/*
2
bug3029630.c
3
*/
4
5
#include <testfwk.h>
6
7
struct
a
8
{
9
void
*
a
;
10
}
s
;
11
12
/* should not give
13
warning 196: pointer target lost const qualifier */
14
void
foo
(
const struct
a
*
x
)
15
{
16
void
*
const
y
=
x
->
a
;
17
(
void
)
y
;
18
}
19
20
void
testBug
(
void
)
21
{
22
foo
(&
s
);
23
}