summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr29254.c
blob: df6ba574a5dbf68959545ab6617767f899e92c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do compile } */
/* { dg-options "-O3 -Werror" } */

int value_compare ();

int
list_compare (int * list1)
{
  if (list1)
    value_compare ();
}

int func1 (int * f){}

int
value_compare (int * a)
{
    if (a)
        list_compare (a);
}

int
func2 (const int * fb)
{
  func1 ((int *) fb); /* { dg-bogus "discards qualifiers" } */
}