forked from Imagelibrary/binutils-gdb
Shared-object relocation tests
This commit is contained in:
18
gdb/testsuite/gdb.base/shreloc.c
Normal file
18
gdb/testsuite/gdb.base/shreloc.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||
# define ATTRIBUTES __attribute((__dllimport__))
|
||||
#else
|
||||
# define ATTRIBUTES
|
||||
#endif
|
||||
|
||||
extern ATTRIBUTES void fn_1 (int);
|
||||
extern ATTRIBUTES void fn_2 (int);
|
||||
extern ATTRIBUTES int extern_var_1;
|
||||
extern ATTRIBUTES int extern_var_2;
|
||||
|
||||
int main ()
|
||||
{
|
||||
fn_1 (extern_var_1);
|
||||
fn_2 (extern_var_2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user