Atomic test case
authorbdemsky <bdemsky>
Thu, 16 Aug 2007 23:10:58 +0000 (23:10 +0000)
committerbdemsky <bdemsky>
Thu, 16 Aug 2007 23:10:58 +0000 (23:10 +0000)
Robust/src/Tests/Atomic.java [new file with mode: 0644]

diff --git a/Robust/src/Tests/Atomic.java b/Robust/src/Tests/Atomic.java
new file mode 100644 (file)
index 0000000..d51bde7
--- /dev/null
@@ -0,0 +1,20 @@
+public class Array {
+    int a;
+    public static void main(String[] st) {
+       int a[]=new int[10];
+       Integer z;
+       atomic {
+           z=global new Integer(3);
+       }
+       int i=2;
+       int q=test(z);
+       System.printInt(q);
+    }
+    public static atomic int test(Integer y) {
+       int x=3;
+       int z;
+       z=y.intValue();
+       return z;
+    }
+
+}