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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
996
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
1 // $HeadURL$
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
2 // $Date$
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
3 // $Author$
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
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
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
9
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
10 module dstress.run.l.length_10_A;
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
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
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
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
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
22 assert(0);
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
23 }
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
24
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
25 return 0;
1d695c74f398 <CppCoder@gmail.com>
thomask
parents:
diff changeset
26 }