]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/weak-coalesce.dtest/foo3.c
dyld-851.27.tar.gz
[apple/dyld.git] / testing / test-cases / weak-coalesce.dtest / foo3.c
1 #include "test_support.h"
2
3 #include "base.h"
4
5 int __attribute__((weak)) coal1 = 3;
6 int __attribute__((weak)) coal2 = 2;
7
8 static __attribute__((constructor))
9 void myinit(int argc, const char* argv[], const char* envp[], const char* apple[])
10 {
11 LOG("myinit() in foo1.c");
12 baseVerifyCoal1("in foo3", &coal1);
13 baseVerifyCoal2("in foo3", &coal2);
14 }
15