Re-enabled use of AROS.Boot file due to lack of general enthusiasm for
[tangerine.git] / test / uae-tmpl / test-2.c
blob1d23602d4727ea602a7c81e91967c681378127fa
2 #include <stdio.h>
3 #include <assert.h>
5 #include "aros_types.h"
7 int main (int argc, char ** argv)
9 unsigned char *u;
10 char *c = "foo";
11 void *v = &c;
12 APTR a;
13 be_ptr<char> s;
15 u = c;
16 s = c;
17 a = v;
19 long *l = (long *) c;
20 be_ptr<long> bl = l; // calls constructor
21 bl = l; // calls assignment operator
22 bl = c;
24 assert (s == c);
25 assert (strcmp (s, c) == 0);