Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr29254.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |