Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr41841.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 /* PR tree-optimization/41841 */ |
2 /* { dg-do compile } */ | |
131 | 3 /* { dg-options "-O -fwhole-program -fipa-cp" } */ |
111 | 4 |
5 typedef struct S *T; | |
6 typedef struct { } *U; | |
7 extern int f1 (void); | |
8 | |
9 static void | |
10 f3 (U x, int y) | |
11 { | |
12 T a = (T) x; | |
13 y && f1 (); | |
14 } | |
15 | |
16 static void | |
17 f2 (T x) | |
18 { | |
19 f3 ((U) x, 1); | |
20 } | |
21 | |
22 void *volatile a __attribute__((used)) = f2; |