OSDN Git Service

2012-04-13 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / pr51071.c
1 /* { dg-do compile } */
2
3 void foo (void);
4 void bar (void *);
5 extern int t;
6
7 static void kmalloc_large (int size, int flags)
8 {
9   (void) size;
10   (void) flags;
11   foo ();
12   bar (({__here:&&__here;}));
13 }
14
15 static void kmalloc (int size, int flags)
16 {
17   if (size)
18     {
19       if ((unsigned long) size > 0x1000)
20         kmalloc_large (size, flags);
21
22       if (flags)
23         bar (({__here:&&__here;}));
24     }
25 }
26
27 void compress_file_range (int i, int j, int k)
28 {
29   int nr_pages = ({j < k;});
30
31   if (i || t)
32     kmalloc (0x1000UL * nr_pages, 0x40UL);
33 }