Fixed compatibility of output.
[AROS.git] / test / library / usereltest.c
blobefc042ae79e5478e87da930fa4df1b2d35cbc37f
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/pertask.h>
9 #include <proto/userel.h>
11 #include "pertaskvalue.h"
13 int main (int argc, char ** argv)
15 ULONG vec[3] = {1, 2, 0};
16 VOID *parent;
18 vec[2] = DummyAdd(vec[0], vec[1]);
20 Printf("%ld+%ld=%ld\n",vec[0], vec[1], vec[2]);
22 parent = PertaskGetParentBase();
24 Printf("ParentBase = %p\n",parent);
26 Printf("104 205 306 407:\n");
27 DummyPrint4(101, 202, 303, 404);
29 pertaskvalue = 1;
30 Printf("\n1 == %ld ?\n", PertaskGetValue());
31 Printf("1 == %ld ?\n", GetChildValue());
33 PertaskSetValue(2);
34 Printf("\n2 == %ld ?\n", GetChildValue());
36 Flush (Output ());
38 return 0;