URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [dllimport8.C] - Rev 307
Go to most recent revision | Compare with Previous | Blame | View Log
// 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 "redeclared without dllimport" }
{
}
inline void Foo::static_func2()
{
}
void testfoo()
{
Foo::static_func1();
Foo::static_func2();
}
// { dg-final { scan-assembler-not "__imp__" } }
Go to most recent revision | Compare with Previous | Blame | View Log