File: test-dummylib.c

package info (click to toggle)
gtk3-nocsd 3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 360 kB
  • sloc: ansic: 2,057; makefile: 84; sh: 47
file content (16 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Dummy test library.
 *
 * This library will be dlopen()d by test-static-tls in multiple different
 * versions to see if libgtk3-nocsd.so uses up a static TLS entry, which
 * it shouldn't.
 */

static __thread int i = 0;

#define NAME2_HIDDEN(a, b) a ## b
#define NAME2(a, b) NAME2_HIDDEN(a,b)

int *NAME2(testlib_dummy_get_, TESTLIB_NAME) ()
{
  return &i;
}