OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [dllimport8.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
//  PR c++/8378
//  PR c++/8378
//  Ignore  dllimport of static members if marked inlined.
//  Ignore  dllimport of static members if marked inlined.
//  or if definition follows  declaration in dllimported class.
//  or if definition follows  declaration in dllimported class.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
// { dg-options { -Wall -W } }
// { dg-options { -Wall -W } }
struct  __attribute__((dllimport)) Foo
struct  __attribute__((dllimport)) Foo
{
{
  static int static_int;
  static int static_int;
  static void static_func1();
  static void static_func1();
  static void static_func2();
  static void static_func2();
 };
 };
void Foo::static_func1()        //  { dg-warning "redeclared without dllimport" }
void Foo::static_func1()        //  { dg-warning "redeclared without dllimport" }
{
{
}
}
inline void Foo::static_func2()
inline void Foo::static_func2()
{
{
}
}
void testfoo()
void testfoo()
{
{
  Foo::static_func1();
  Foo::static_func1();
  Foo::static_func2();
  Foo::static_func2();
}
}
// { dg-final { scan-assembler-not "__imp__" } }
// { dg-final { scan-assembler-not "__imp__" } }
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.