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

📄 dllexport1.c

📁 linux下的gcc编译器
💻 C
字号:
// Test that inline functions are exported with -fkeep-inline-functions.// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }// { dg-options -fkeep-inline-functions } __attribute__((dllexport)) inline int foo (int a) { return a;}class __attribute__((dllexport)) Bar{  public:    Bar(){};    int inline_bar(int a) {return a;}    int outline_bar(int a); };int Bar::outline_bar(int a) {return foo (a);}Bar abar;// { dg-final { scan-assembler "\.section\[ \t\]*.drectve\n.*_ZN3Bar11outline_barEi" } }// { dg-final { scan-assembler " -export:_ZN3Bar10inline_barEi" } }// { dg-final { scan-assembler " -export:_Z3fooi" } }

⌨️ 快捷键说明

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