diff options
Diffstat (limited to 'Tests/BundleTest/BundleTest.cxx')
-rw-r--r-- | Tests/BundleTest/BundleTest.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Tests/BundleTest/BundleTest.cxx b/Tests/BundleTest/BundleTest.cxx new file mode 100644 index 0000000..a5e8f59 --- /dev/null +++ b/Tests/BundleTest/BundleTest.cxx @@ -0,0 +1,22 @@ +#include <stdio.h> + +#include <CoreFoundation/CoreFoundation.h> + +extern int foo(char* exec); + +int main(int argc, char* argv[]) +{ + printf("Started with: %d arguments\n", argc); + + // Call a CoreFoundation function... but pull in the link dependency on + // "-framework + // CoreFoundation" via CMake's dependency chaining mechanism. This code + // exists to + // verify that the chaining mechanism works with "-framework blah" style + // link dependencies. + // + CFBundleRef br = CFBundleGetMainBundle(); + (void)br; + + return foo(argv[0]); +} |