]>
Commit | Line | Data |
---|---|---|
39a8cd10 A |
1 | #include <stdio.h> // fprintf(), NULL |
2 | #include <stdlib.h> // exit(), EXIT_SUCCESS | |
3 | #include <dlfcn.h> | |
4 | ||
5 | #include "test.h" // PASS(), FAIL(), XPASS(), XFAIL() | |
6 | ||
7 | // libfoo.dylib is built from multiple source files | |
8 | // It internally uses non-lazy pointer to compute | |
9 | // the result for foo() | |
10 | ||
11 | ||
12 | extern int foo(); | |
13 | ||
14 | int main() | |
15 | { | |
16 | if ( foo() == 10 ) | |
17 | PASS("non-lazy-slide"); | |
18 | else | |
19 | FAIL("non-lazy-slide"); | |
20 | return EXIT_SUCCESS; | |
21 | } | |
22 | ||
23 |