]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/test/dlopen/libstatic.c
Inital import
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / test / dlopen / libstatic.c
1 #include <stdio.h>
2
3 static int global_static = -1;
4
5 int static_test(void)
6 {
7         static int local_static = -2;
8
9         if (global_static != -1)
10                 printf("FAIL: global_static is not -1\n");
11         if (local_static != -2)
12                 printf("FAIL: local_static is not -2\n");
13
14         return (global_static == -1 && local_static == -2);
15 }