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/] [dllimport12.C] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR target/27650
2
// Don't use dllimport semantics on virtual methods
3
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
4
 
5
// Don't import explicitly virtual method.
6
struct base
7
{
8
  virtual void key_method();
9
  __attribute__((dllimport)) virtual ~base();
10
};
11
 
12
void base::key_method() {}
13
 
14
 
15
// Nor an implicitly virtual method.
16
struct derived : public base
17
{
18
  void key_method();
19
  __attribute__((dllimport)) ~derived();
20
};
21
 
22
void derived::key_method() {}

powered by: WebSVN 2.1.0

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