Let GRUB text/graphics choice default to same as on boot media.
[AROS.git] / test / library / dummytest.c
blob412173fd8b5c04370da9344a66b95f73c607b0db
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 IPTR vec[3];
21 c=add(a,b);
23 d=asl(a,b);
25 vec[0]=a;
26 vec[1]=b;
27 vec[2]=c;
28 VPrintf((STRPTR)"%ld+%ld=%ld\n",vec);
30 vec[0]=a;
31 vec[1]=b;
32 vec[2]=d;
33 VPrintf((STRPTR)"%ld<<%ld=%ld\n",vec);
35 CloseLibrary((struct Library *)DummyBase);
37 else
38 FPuts(Output(),(STRPTR)"Failed to open dummy.library");
40 Flush (Output ());
42 return 0;