Document gcov-io (PR gcov-profile/84735).
[official-gcc.git] / gcc / testsuite / gcc.dg / pr41762.c
blob88d8172f288d4961e48238b2cd98a2e4838e301b
1 /* PR target/41762 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftracer -fsched2-use-superblocks" } */
4 /* { dg-options "-O2 -ftracer -fsched2-use-superblocks -fpic" { target fpic } } */
6 extern __SIZE_TYPE__ strlen (const char *);
7 extern int f1 (void *);
8 extern char *f2 (void);
9 extern void f3 (int, int);
10 static char *a;
11 char *b, *c, *d, *e;
13 void
14 foo (void)
16 int f, g, h;
17 f = (a ? strlen (a) : strlen ("abcde"));
18 f += (b ? strlen (b) : 0);
19 f += (c ? strlen (c) : 0);
20 f += (d ? strlen (d) : 0);
21 f += (e ? strlen (e) : 0);
22 h = f1 (strlen);
23 g = strlen (a);
24 f3 (g, f);
27 void
28 bar (void)
30 a = f2 ();