OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr29254.c
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -Werror" } */
3 /* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
4
5 list_compare (int * list1)
6 {
7   if (list1)
8     value_compare ();
9 }
10
11 func1 (int * f){}
12
13 value_compare (int * a)
14 {
15     if (a)
16         list_compare (a);
17 }
18
19 func2 (const int * fb)
20 {
21   func1 ((int *) fb); /* { dg-warning "discards qualifiers" } */
22 }