OSDN Git Service

2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / graphite / scop-19.c
1 /* { dg-options "-O2 -fgraphite -fdump-tree-graphite-all" } */
2 typedef unsigned int __uint32_t;
3 typedef __uint32_t __size_t;
4 typedef __size_t size_t;
5 struct demangle_component
6 {
7   union
8   {
9   } u;
10 };
11 enum d_builtin_type_print
12 {
13   D_PRINT_VOID
14 };
15 struct d_growable_string
16 {
17   size_t alc;
18 };
19 d_growable_string_resize (struct d_growable_string *dgs, size_t need)
20 {
21   size_t newalc;
22   newalc = dgs->alc > 0 ? dgs->alc : 2;
23   while (newalc < need)
24     newalc <<= 1;
25 }
26 d_growable_string_append_buffer (struct d_growable_string *dgs,
27                                  const char *s, size_t l)
28 {
29   size_t need;
30   if (need > dgs->alc)
31     d_growable_string_resize (dgs, need);
32 }
33 /* { dg-final { scan-tree-dump-times "number of SCoPs: 0" 2 "graphite"} } */ 
34 /* { dg-final { cleanup-tree-dump "graphite" } } */
35