Removed code that used to test a feature only supported in
[AROS.git] / test / uae-tmpl / test-2.c
blob759859bbf0d833b0aa04b01b77e918438967822f
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
7 #include <assert.h>
9 #include "aros_types.h"
11 int main (int argc, char ** argv)
13 unsigned char *u;
14 char *c = "foo";
15 void *v = &c;
16 APTR a;
17 be_ptr<char> s;
19 u = c;
20 s = c;
21 a = v;
23 long *l = (long *) c;
24 be_ptr<long> bl = l; // calls constructor
25 bl = l; // calls assignment operator
26 bl = c;
28 assert (s == c);
29 assert (strcmp (s, c) == 0);