]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-jna.dtest/main.c
dyld-851.27.tar.gz
[apple/dyld.git] / testing / test-cases / dlopen-jna.dtest / main.c
1 // BUILD(macos): $CC foo.c -dynamiclib -install_name $RUN_DIR/libfoo.dylib -o $BUILD_DIR/libfoo.dylib
2 // BUILD(macos): $CC jna.c -dynamiclib -install_name $RUN_DIR/jna.dylib -o $BUILD_DIR/jna.dylib
3 // BUILD(macos): $CC main.c -o $BUILD_DIR/dlopen-jna.exe $BUILD_DIR/libfoo.dylib $BUILD_DIR/jna.dylib
4
5 // BUILD(ios,tvos,watchos,bridgeos):
6
7 // RUN: ./dlopen-jna.exe
8
9 #include "test_support.h"
10
11 extern void foo();
12 extern void jna();
13
14 int main(int arg, const char* argv[])
15 {
16 foo();
17 jna();
18 PASS("Success");
19 return 0;
20 }
21