]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/upward-dylib/down.c
dyld-239.4.tar.gz
[apple/dyld.git] / unit-tests / test-cases / upward-dylib / down.c
1 #include <stdio.h>
2 #include "up.h"
3
4 static int state = 0;
5
6
7 // should run second because down.dylib is lower than up.dylib
8 static __attribute__((constructor)) void myInit3()
9 {
10 //fprintf(stderr, "myInit3()\n");
11 state = 1;
12 }
13
14 int getdown()
15 {
16 return state;
17 }
18
19 int getdownsup()
20 {
21 return whatsup();
22 }