blob: da57ef4bdcc8e08bd48e7d98b79f351fdc3fe824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Handle dllimport attribute for functions declared inline.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } }
// { dg-options { -W } }
inline __attribute__((dllimport)) void bar() { } // { dg-warning "inline" }
struct __attribute__ ((dllimport)) Blah
{
void in_blah () { } // Don't warn if member declared inline in class definition.
void out_blah ();
};
inline void Blah::out_blah(){ } // Don't warn for inline override of external declaration
void use_inlines()
{
Blah aBlah;
bar();
aBlah.in_blah ();
aBlah.out_blah ();
}
// { dg-final { scan-assembler-not "__imp_" } }
|