repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR middle-end/27945
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr29254.c
blob
598b6bf7b115aebc7f7f23c20162cb8938ed729c
1
/* { dg-do compile } */
2
/* { dg-options "-O3 -Werror" } */
3
4
list_compare
(
int
*
list1
)
5
{
6
if
(
list1
)
7
value_compare
();
8
}
9
10
func1
(
int
*
f
){}
11
12
value_compare
(
int
*
a
)
13
{
14
if
(
a
)
15
list_compare
(
a
);
16
}
17
18
func2
(
const int
*
fb
)
19
{
20
func1
((
int
*)
fb
);
/* { dg-bogus "discards qualifiers" } */
21
}