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

📄 dllimport8.c

📁 gcc-you can use this code to learn something about gcc, and inquire further into linux,
💻 C
字号:
//  PR c++/8378//  Ignore  dllimport of static members if marked inlined.//  or if definition follows  declaration in dllimported class.// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }// { dg-options { -Wall -W } }struct  __attribute__((dllimport)) Foo {    static int static_int;    static void static_func1();    static void static_func2(); };void Foo::static_func1()  {		//  { dg-warning "defined" }  }inline void Foo::static_func2() {		//  { dg-warning "inline function" } }void testfoo(){   Foo::static_func1();  Foo::static_func2();}// { dg-final { scan-assembler-not "__imp__" } }

⌨️ 快捷键说明

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