source: trunk/kLdr/testcase/tst-0.c@ 2863

Last change on this file since 2863 was 2863, checked in by bird, 19 years ago

bare bone dll testcase.

File size: 511 bytes
Line 
1#include "tst.h"
2#include <stdio.h>
3
4MY_IMPORT(int) FuncA(void);
5MY_IMPORT(int) FuncB(void);
6MY_IMPORT(int) FuncC(void);
7
8int main()
9{
10 unsigned long ul;
11 printf("graph:\n"
12 " tst-0 -> a -> d\n"
13 " b -> d\n"
14 " c -> d\n");
15 ul = FuncA() | FuncB() | FuncC();
16 if (ul == 0x42424242)
17 printf("tst-0: success, ul=%#lx\n", ul);
18 else
19 printf("tst-0: failure, ul=%#lx\n", ul);
20 return ul == 0x42424242 ? 0 : 1;
21}
Note: See TracBrowser for help on using the repository browser.