]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/weak-coalesce.dtest/foo2.c
74d884b5509215d8a48d74c84fac939c32392bff
[apple/dyld.git] / testing / test-cases / weak-coalesce.dtest / foo2.c
1 #include <stdio.h>
2
3 #include "base.h"
4
5 int coal1 = 2; // note: this is not weak and therefore should win
6 int __attribute__((weak)) coal2 = 2;
7
8 static __attribute__((constructor))
9 void myinit()
10 {
11 //fprintf(stderr, "myinit() in foo1.c\n");
12 baseVerifyCoal1("in foo2", &coal1);
13 baseVerifyCoal2("in foo2", &coal2);
14 }