Mercurial > projects > ldc
annotate tests/mini/norun_debug3.d @ 1448:e92e14690a4f
change mingw32 versioning to version(Windows)
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Sun, 31 May 2009 11:20:26 -0600 |
parents | 925779c19395 |
children |
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_debug3; |
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 = 42; |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
6 int* ip = &i; |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
7 |
1425
925779c19395
I ran into another issue like the one fixed by r1318, so update all of
Frits van Bommel <fvbommel wxs.nl>
parents:
416
diff
changeset
|
8 int* fail = cast(int*) 1; |
416
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
9 *fail = 0; |
24ea9bf5f8b7
testing the new mini test runner features.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff
changeset
|
10 } |