(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr29254.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O3 -Werror" } */
       3  
       4  int value_compare ();
       5  
       6  int
       7  list_compare (int * list1)
       8  {
       9    if (list1)
      10      value_compare ();
      11  }
      12  
      13  int func1 (int * f){}
      14  
      15  int
      16  value_compare (int * a)
      17  {
      18      if (a)
      19          list_compare (a);
      20  }
      21  
      22  int
      23  func2 (const int * fb)
      24  {
      25    func1 ((int *) fb); /* { dg-bogus "discards qualifiers" } */
      26  }