intuition.library: implement EasyReqest and BuildEasyRequest that are x64/arm compatible
[AROS.git] / test / library / dummytest.c
blobcae211841d9236c19d8aeca69f23497a1cca9d21
1 /*
2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
7 #include <proto/dos.h>
8 #include <proto/dummy.h>
10 int main (int argc, char ** argv)
12 ULONG a=1,b=2,c=0,d=0;
13 struct Library *DummyBase;
15 DummyBase=OpenLibrary((STRPTR)"dummy.library",0);
17 if(DummyBase!=NULL)
19 c=add(a,b);
21 d=asl(a,b);
23 Printf((STRPTR)"%ld+%ld=%ld\n", a, b, c);
25 Printf((STRPTR)"%ld<<%ld=%ld\n", a, b, d);
27 CloseLibrary((struct Library *)DummyBase);
29 else
30 FPuts(Output(),(STRPTR)"Failed to open dummy.library");
32 Flush (Output ());
34 return 0;