Mercurial > projects > dstress
annotate run/l/length_12_C.d @ 1496:64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
Matti Niemenmaa <deewiant@gmail.com>
2007-04-21
http://d.puremagic.com/issues/show_bug.cgi?id=1172
author | thomask |
---|---|
date | Mon, 23 Apr 2007 17:55:28 +0000 |
parents | |
children |
rev | line source |
---|---|
1496
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
2 // $Date$ |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
3 // $Author$ |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
4 |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
5 // @author@ Matti Niemenmaa <deewiant@gmail.com> |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
6 // @date@ 2007-04-21 |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1171 |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 1171] Cannot create a static array with the length of a const static array in function scope |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
9 |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
10 module dstress.run.l.length_12_C; |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
11 |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
12 const int[2] foo; |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
13 int[foo.length] bar; |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
14 |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
15 int main() { |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
16 |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
17 if(2 != bar.length){ |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
18 assert(0); |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
19 } |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
20 |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
21 return 0; |
64151e92e113
[Issue 1172] Inline assembler: cannot access member of templated aggregate directly
thomask
parents:
diff
changeset
|
22 } |