⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initpri1.c

📁 用于进行gcc测试
💻 C
字号:
/* 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; }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -