tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / test / exec / portreceive.c
blob767979f6ca33ee30263159df2bccfdfdad453b1b
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
7 #include <proto/alib.h>
9 #include <exec/ports.h>
10 #include <stdio.h>
12 int main(void)
14 struct Message *msg;
15 struct MsgPort *port;
17 port = CreatePort("PORTTEST", 0);
18 if (port==NULL)
20 puts("Error creating port");
21 return 20;
24 WaitPort(port);
25 msg = GetMsg(port);
26 puts("Message received");
27 ReplyMsg(msg);
28 puts("Message returned");
30 DeletePort(port);
32 return 0;