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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vxworks/] [initpri2.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* On VxWorks, in kernel mode, there is no support for .ctors/.dtors.
2
   Instead, initialization is handled by munch.  */
3
 
4
/* { dg-do compile { target vxworks_kernel } } */
5
/* { dg-final { scan-assembler-not "\.ctors" } } */
6
/* { dg-final { scan-assembler-not "\.dtors" } } */
7
 
8
volatile int i;
9
 
10
void c1 () __attribute__((constructor));
11
void c1 () { ++i; }
12
 
13
void d1 () __attribute__((destructor));
14
void d1 () { --i; }
15
 

powered by: WebSVN 2.1.0

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