URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [dllimport9.C] - Rev 384
Compare with Previous | Blame | View Log
// Handle dllimport attribute for functions declared inline.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
// { dg-options { -W } }
inline __attribute__((dllimport)) void bar() { } // { dg-warning "inline" }
struct __attribute__ ((dllimport)) Blah
{
void in_blah () { } // Don't warn if member declared inline in class definition.
void out_blah ();
};
inline void Blah::out_blah(){ } // Don't warn for inline override of external declaration
void use_inlines()
{
Blah aBlah;
bar();
aBlah.in_blah ();
aBlah.out_blah ();
}
// { dg-final { scan-assembler-not "__imp__" } }