OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr29254.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.