mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
96b0c7acfe
IBM's xlc compiler. * gdb.base/shreloc1.c (fn_1): Reference variable static_var_1. * gdb.base/shreloc2.c (fn_2): Reference variable static_var_2.
11 lines
254 B
C
11 lines
254 B
C
#if defined(_WIN32) || defined(__CYGWIN__)
|
|
# define ATTRIBUTES __attribute((__dllexport__))
|
|
#else
|
|
# define ATTRIBUTES
|
|
#endif
|
|
|
|
static int static_var_2;
|
|
|
|
ATTRIBUTES void fn_2 (int referenced) { static_var_2 = referenced; }
|
|
ATTRIBUTES int extern_var_2 = 0;
|