📄 initpri2.c
字号:
/* On VxWorks, in kernel mode, there is no support for .ctors/.dtors. Instead, initialization is handled by munch. *//* { dg-do compile { target vxworks_kernel } } *//* { dg-final { scan-assembler-not "\.ctors" } } *//* { dg-final { scan-assembler-not "\.dtors" } } */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 + -