OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr47727.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
 
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)
8
{
9
  func_ptr *p;
10
  for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
11
    (*p) ();
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.