summaryrefslogtreecommitdiff
path: root/test/dlopen/libundef.c
blob: bf44c3c6844b688e1921ff3fe8d2b586cd10e822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

static int global_static = -1;

int static_test(void)
{
	static int local_static = -2;

	if (global_static != -1)
		printf("FAIL: global_static is not -1\n");
	if (local_static != -2)
		printf("FAIL: local_static is not -2\n");

	return (global_static == -1 && local_static == -2);
}