PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr29254.c
blobdf6ba574a5dbf68959545ab6617767f899e92c2a
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -Werror" } */
4 int value_compare ();
6 int
7 list_compare (int * list1)
9 if (list1)
10 value_compare ();
13 int func1 (int * f){}
15 int
16 value_compare (int * a)
18 if (a)
19 list_compare (a);
22 int
23 func2 (const int * fb)
25 func1 ((int *) fb); /* { dg-bogus "discards qualifiers" } */