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

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

func1 (int * f){}

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

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