1#include <stdio.h>
2#include <string.h>
3#include <mach-o/dyld-interposing.h>
4#include "base.h"
5#include "test.h" // PASS(), FAIL(), XPASS(), XFAIL()
6
7int (*p1)() = &base1;
8
9__attribute__((constructor))
10void myinit()
11{
12	if ( (*p1)() == 10 )
13		PASS("interpose-multiple");
14	else
15		FAIL("interpose-multiple");
16}
17
18
19int mybase2()
20{
21	return 20;
22}
23
24
25DYLD_INTERPOSE(mybase2, base2)
26