summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr43058.c
blob: bba6f814a71bcf9028a858d6c964a43ca69fc0b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR debug/43058 */
/* { dg-do compile } */
/* { dg-options "-g -O2" } */
/* { dg-timeout-factor 4 } */

extern void *f1 (void *, void *, void *);
extern void *f2 (const char *, int, int, int, void *(*) ());
extern void *f3 (const char *);
extern void *f4 (void *s);
extern void *f5 (void *);

void test (void)
{
#define X1 f1 (f2 ("a", 1, 0, 0, f5), \
	       f4 (({ const char *a = "b"; f3 (a); })), \
	       ({ const char *a = "c"; f3 (a); }));
#define X2 X1 X1 X1 X1 X1 X1 X1 X1 X1 X1
#define X3 X2 X2 X2 X2 X2 X2 X2 X2 X2 X2
#define X4 X3 X3 X3 X3 X3 X3 X3 X3 X3 X3
  X4 X4
}