Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr47727.c
blob1ce7c360117480f438a6faa57c3a3358b0dde5ea
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 typedef void (*func_ptr) (void);
5 static func_ptr __CTOR_END__[1] = { (func_ptr) 0 };
6 static void __attribute__((used))
7 __do_global_ctors_aux (void)
9 func_ptr *p;
10 for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
11 (*p) ();