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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vxworks/] [initpri1.c] - Rev 399

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

/* On VxWorks, in RTP mode, constructors and destructors go in named
   sections.  The section names must include the initialization
   priority, even for constructors and destructors with the default
   priority.  */
 
/* The selector below excludes VxWorks AE because AE does not support
   RTP mode.  */
/* { dg-do compile { target { *-*-vxworks* && { ! *-*-vxworksae* } } } } */
/* { dg-options "-mrtp" } */
/* { dg-final { scan-assembler "ctors\.00000" } } */
/* { dg-final { scan-assembler "dtors\.00000" } } */
 
volatile int i;
 
void c1 () __attribute__((constructor));
void c1 () { ++i; }
 
void d1 () __attribute__((destructor));
void d1 () { --i; }
 

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

powered by: WebSVN 2.1.0

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