const5.c
来自「用于进行gcc测试」· C语言 代码 · 共 14 行
C
14 行
// We don't have a good way of determining how ".rodata" is spelled on// all targets, so we limit this test to a few common targets where we// do know the spelling.// { dg-do compile { target i?86-*-linux* x86_64-*-linux* } }// { dg-final { scan-assembler "\\.rodata" } }template <typename T>struct B { int i;};// This declaration should be placed in .rodata.const B<int> const_B __attribute__((used)) = { 3 };
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?