repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
compiler/clib: Remove usage of acb_environptr field outside __arosc_environ.c
[AROS.git]
/
test
/
uae-tmpl
/
test-2.c
blob
1d23602d4727ea602a7c81e91967c681378127fa
1
2
#include <stdio.h>
3
#include <assert.h>
4
5
#include
"aros_types.h"
6
7
int
main
(
int
argc
,
char
**
argv
)
8
{
9
unsigned char
*
u
;
10
char
*
c
=
"foo"
;
11
void
*
v
= &
c
;
12
APTR a
;
13
be_ptr
<
char
>
s
;
14
15
u
=
c
;
16
s
=
c
;
17
a
=
v
;
18
19
long
*
l
= (
long
*)
c
;
20
be_ptr
<
long
>
bl
=
l
;
// calls constructor
21
bl
=
l
;
// calls assignment operator
22
bl
=
c
;
23
24
assert
(
s
==
c
);
25
assert
(
strcmp
(
s
,
c
) ==
0
);
26
}