Mercurial > projects > dang
annotate tests/sema/deref_3.d @ 116:0cd8d6ab3f89
Add in the types for float and co.
author | Anders Halager <halager@gmail.com> |
---|---|
date | Sun, 25 May 2008 18:19:09 +0200 |
parents | 244142a21cbc |
children |
rev | line source |
---|---|
113 | 1 int main() |
2 { | |
116
0cd8d6ab3f89
Add in the types for float and co.
Anders Halager <halager@gmail.com>
parents:
113
diff
changeset
|
3 int* a; |
0cd8d6ab3f89
Add in the types for float and co.
Anders Halager <halager@gmail.com>
parents:
113
diff
changeset
|
4 int** b; |
113 | 5 *a = 1; |
6 *b = a; | |
7 | |
8 return *a == **b; | |
9 } | |
10 |