aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/shreloc1.c
blob: 6a228f8585334d551b9a52d73dcc25b6e757a47a (plain)
1
2
3
4
5
6
7
8
9
10
#if defined(_WIN32) || defined(__CYGWIN__)
# define ATTRIBUTES __attribute((__dllexport__))
#else
# define ATTRIBUTES
#endif

static int static_var_1;

ATTRIBUTES void fn_1 (int referenced) { static_var_1 = referenced; }
ATTRIBUTES int extern_var_1 = 0;