]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/weak-coalesce.dtest/main.c
dyld-851.27.tar.gz
[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 "test_support.h"
15 #include "base.h"
16
17 int main(int argc, const char* argv[], const char* envp[], const char* apple[]) {
18 baseVerifyCoal1("in main", &coal1);
19 baseVerifyCoal2("in main", &coal2);
20
21 baseCheck();
22 }
23