OpenCores
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] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
//  PR c++/8378
2
//  Ignore  dllimport of static members if marked inlined.
3
//  or if definition follows  declaration in dllimported class.
4
 
5
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
6
// { dg-options { -Wall -W } }
7
 
8
struct  __attribute__((dllimport)) Foo
9
{
10
  static int static_int;
11
  static void static_func1();
12
  static void static_func2();
13
 };
14
 
15
void Foo::static_func1()        //  { dg-warning "redeclared without dllimport" }
16
{
17
}
18
 
19
inline void Foo::static_func2()
20
{
21
}
22
 
23
void testfoo()
24
{
25
  Foo::static_func1();
26
  Foo::static_func2();
27
}
28
 
29
// { 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.