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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
//  Handle dllimport attribute for functions declared inline.
2
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
3
// { dg-options { -W } }
4
 
5
inline __attribute__((dllimport)) void bar() { }        // { dg-warning "inline" }
6
 
7
struct __attribute__ ((dllimport)) Blah
8
{
9
  void in_blah () { }  // Don't warn if member declared inline in class definition.
10
  void out_blah ();
11
};
12
 
13
inline void Blah::out_blah(){ } // Don't warn for inline override of external declaration
14
 
15
void use_inlines()
16
{
17
  Blah aBlah;
18
  bar();
19
  aBlah.in_blah ();
20
  aBlah.out_blah ();
21
}
22
 
23
// { 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.