annotate run/const_10.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents ce33adb482a7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
153
ce33adb482a7 added const tests
thomask
parents:
diff changeset
1 // $HeadURL$
ce33adb482a7 added const tests
thomask
parents:
diff changeset
2 // $Date$
ce33adb482a7 added const tests
thomask
parents:
diff changeset
3 // $URL$
ce33adb482a7 added const tests
thomask
parents:
diff changeset
4
ce33adb482a7 added const tests
thomask
parents:
diff changeset
5 module dstress.run.const_10;
ce33adb482a7 added const tests
thomask
parents:
diff changeset
6
ce33adb482a7 added const tests
thomask
parents:
diff changeset
7 struct MyStruct{
ce33adb482a7 added const tests
thomask
parents:
diff changeset
8 int i=2;
ce33adb482a7 added const tests
thomask
parents:
diff changeset
9 }
ce33adb482a7 added const tests
thomask
parents:
diff changeset
10
ce33adb482a7 added const tests
thomask
parents:
diff changeset
11 const MyStruct s;
ce33adb482a7 added const tests
thomask
parents:
diff changeset
12
ce33adb482a7 added const tests
thomask
parents:
diff changeset
13 int main(){
ce33adb482a7 added const tests
thomask
parents:
diff changeset
14 assert(s.i==2);
ce33adb482a7 added const tests
thomask
parents:
diff changeset
15 return 0;
ce33adb482a7 added const tests
thomask
parents:
diff changeset
16 }