Mercurial > projects > ldc
annotate tests/mini/norun_debug5.d @ 713:b3dc22526289
Use malloc instead of alloca.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 21 Oct 2008 20:46:12 +0200 |
parents | 24ea9bf5f8b7 |
children | 925779c19395 |
rev | line source |
---|---|
416
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
1 module mini.norun_debug5; |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
2 |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
3 void main() |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
4 { |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
5 int i = 32; |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
6 real r = 3.1415; |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
7 real* p = &r; |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
8 func(i,r,p); |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
9 } |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
10 |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
11 void func(int i, real r, real* p) |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
12 { |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
13 int* fail; |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
14 *fail = 666; |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
15 } |