1 /* { dg-do compile } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-require-effective-target fpic } */
4 /* { dg-options "-O2 -fpic -mcmodel=large" } */
6 __extension__ typedef __SIZE_TYPE__ size_t;
7 typedef void (*func_ptr) (void);
9 static func_ptr __DTOR_LIST__[1] = { (func_ptr) (-1) };
12 __do_global_dtors_aux (void)
14 extern func_ptr __DTOR_END__[];
16 const size_t max_idx = __DTOR_END__ - __DTOR_LIST__ - 1;
19 while (dtor_idx < max_idx)
21 f = __DTOR_LIST__[++dtor_idx];