]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/weak-coalesce.dtest/main.c
4d09091eaa5983618419d67084e3bf9cc9216ed2
[apple/dyld.git] / testing / test-cases / weak-coalesce.dtest / main.c
1
2 // BUILD: $CC base.c -dynamiclib -install_name $RUN_DIR/libbase.dylib -o $BUILD_DIR/libbase.dylib
3 // BUILD: $CC foo3.c -dynamiclib -install_name $RUN_DIR/libfoo3.dylib -o $BUILD_DIR/libfoo3.dylib $BUILD_DIR/libbase.dylib
4 // BUILD: $CC foo2.c -dynamiclib -install_name $RUN_DIR/libfoo2.dylib -o $BUILD_DIR/libfoo2.dylib $BUILD_DIR/libfoo3.dylib $BUILD_DIR/libbase.dylib
5 // BUILD: $CC foo1.c -dynamiclib -install_name $RUN_DIR/libfoo1.dylib -o $BUILD_DIR/libfoo1.dylib $BUILD_DIR/libfoo2.dylib $BUILD_DIR/libbase.dylib
6 // BUILD: $CC main.c $BUILD_DIR/libfoo1.dylib $BUILD_DIR/libbase.dylib -o $BUILD_DIR/weak-coalesce.exe
7
8 // RUN: ./weak-coalesce.exe
9
10
11 #include <stdio.h>
12 #include <stdlib.h>
13
14 #include "base.h"
15
16 int main()
17 {
18 printf("[BEGIN] weak-coalesce\n");
19
20 baseVerifyCoal1("in main", &coal1);
21 baseVerifyCoal2("in main", &coal2);
22
23 baseCheck();
24 return 0;
25 }
26