summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/shreloc2.c
blob: 1a9b48bd13dfbd0182189bef16b2cc567edfa66c (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_2;

ATTRIBUTES void fn_2 (int referenced) { static_var_2 = referenced; }
ATTRIBUTES int extern_var_2 = 0;