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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [dllimport1.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
//  PR c++/7910
//  PR c++/7910
// { 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 } }
class __attribute__((dllimport)) Foo
class __attribute__((dllimport)) Foo
{
{
 public:
 public:
  virtual void dummy_foo_func(void)
  virtual void dummy_foo_func(void)
    {}
    {}
  void dummy_foo_fun2();
  void dummy_foo_fun2();
  virtual ~Foo();  //  avoid warning
  virtual ~Foo();  //  avoid warning
};
};
void Foo::dummy_foo_fun2()      //  { dg-warning "redeclared without dllimport" }
void Foo::dummy_foo_fun2()      //  { dg-warning "redeclared without dllimport" }
{
{
}
}
class Bar : public Foo
class Bar : public Foo
{
{
public:
public:
  ~Bar();
  ~Bar();
  void dummy_bar_func();
  void dummy_bar_func();
};
};
Bar::~Bar()
Bar::~Bar()
{}
{}
void Bar::dummy_bar_func()
void Bar::dummy_bar_func()
{}
{}
// { dg-final { scan-assembler-not "__imp___ZN3Foo14dummy_foo_fun" } }
// { dg-final { scan-assembler-not "__imp___ZN3Foo14dummy_foo_fun" } }
 
 

powered by: WebSVN 2.1.0

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