1 typedef unsigned int __uint32_t; 2 typedef __uint32_t __size_t; 3 typedef __size_t size_t; 4 struct demangle_component 5 { 6 union 7 { 8 } u; 9 }; 10 enum d_builtin_type_print 11 { 12 D_PRINT_VOID 13 }; 14 struct d_growable_string 15 { 16 size_t alc; 17 }; d_growable_string_resize(struct d_growable_string * dgs,size_t need)18d_growable_string_resize (struct d_growable_string *dgs, size_t need) 19 { 20 size_t newalc; 21 newalc = dgs->alc > 0 ? dgs->alc : 2; 22 while (newalc < need) 23 newalc <<= 1; 24 } d_growable_string_append_buffer(struct d_growable_string * dgs,const char * s,size_t l)25d_growable_string_append_buffer (struct d_growable_string *dgs, 26 const char *s, size_t l) 27 { 28 size_t need; 29 if (need > dgs->alc) 30 d_growable_string_resize (dgs, need); 31 } 32 /* { dg-final { scan-tree-dump-times "number of SCoPs: 0" 2 "graphite"} } */ 33 /* { dg-final { cleanup-tree-dump "graphite" } } */ 34 35