diff tangotests/volatile1.d @ 206:cd2c9f4010e4 trunk

[svn r222] Forgot to remove volatile ATTENTION. Fixed a few comment types. Forgot to add makefile for the basic GC.
author lindquist
date Tue, 13 May 2008 18:07:03 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tangotests/volatile1.d	Tue May 13 18:07:03 2008 +0200
@@ -0,0 +1,13 @@
+module tangotests.volatile1;
+
+import tango.stdc.stdlib;
+
+void main()
+{
+    int var = rand();
+    {
+        int i = var;
+        volatile;
+        int j = i;
+    }
+}