annotate compile/const_11.d @ 1619:bebc7472a832

Fix #7.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Nov 2009 18:55:30 +0100
parents 1d1f281a9b11
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
1590
1d1f281a9b11 Move const_11 to compile. Addresses of globals are valid constants.
Christian Kamm <kamm incasoftware de>
parents: 338
diff changeset
5 module dstress.compile.const_11;
153
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 const MyStruct* sp = &s;
ce33adb482a7 added const tests
thomask
parents:
diff changeset
13