projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
640066f
)
Atomic test case
author
bdemsky
<bdemsky>
Thu, 16 Aug 2007 23:10:58 +0000
(23:10 +0000)
committer
bdemsky
<bdemsky>
Thu, 16 Aug 2007 23:10:58 +0000
(23:10 +0000)
Robust/src/Tests/Atomic.java
[new file with mode: 0644]
patch
|
blob
diff --git a/Robust/src/Tests/Atomic.java
b/Robust/src/Tests/Atomic.java
new file mode 100644
(file)
index 0000000..
d51bde7
--- /dev/null
+++ b/
Robust/src/Tests/Atomic.java
@@ -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;
+ }
+
+}