Mercurial > projects > dstress
annotate run/l/length_10_A.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | 44d9b47ed060 |
children |
rev | line source |
---|---|
996 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
1471
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
5 // @author@ <CppCoder@gmail.com> |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
6 // @date@ 2006-05-02 |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=123 |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
8 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1031 |
996 | 9 |
10 module dstress.run.l.length_10_A; | |
11 | |
1471
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
12 size_t intRes(){ |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
13 return 4; |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
14 } |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
15 |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
16 static const char[] foo = "abc123"; |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
17 |
996 | 18 int main(){ |
1471
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
19 char c = foo[intRes() % $]; |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
20 |
44d9b47ed060
[Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang
thomask
parents:
1470
diff
changeset
|
21 if(c != '2'){ |
996 | 22 assert(0); |
23 } | |
24 | |
25 return 0; | |
26 } |