summaryrefslogtreecommitdiff
path: root/test/pending/files/run
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-03-28 14:43:41 +0000
committermihaylov <mihaylov@epfl.ch>2006-03-28 14:43:41 +0000
commite858e292e5871848c8665ebad177a6592aeec740 (patch)
tree82e800e0c1b1e6cfa749b55fa3344139b9aa61e2 /test/pending/files/run
parent2b4f59122107e662f6bce683956069a4a03cd128 (diff)
downloadscala-e858e292e5871848c8665ebad177a6592aeec740.tar.gz
scala-e858e292e5871848c8665ebad177a6592aeec740.tar.bz2
scala-e858e292e5871848c8665ebad177a6592aeec740.zip
moved pending/ to test/
Diffstat (limited to 'test/pending/files/run')
-rw-r--r--test/pending/files/run/retsynch.check1
-rw-r--r--test/pending/files/run/retsynch.scala11
2 files changed, 12 insertions, 0 deletions
diff --git a/test/pending/files/run/retsynch.check b/test/pending/files/run/retsynch.check
new file mode 100644
index 0000000000..8c40598f93
--- /dev/null
+++ b/test/pending/files/run/retsynch.check
@@ -0,0 +1 @@
+abs(-5) = 5
diff --git a/test/pending/files/run/retsynch.scala b/test/pending/files/run/retsynch.scala
new file mode 100644
index 0000000000..d6398cf28e
--- /dev/null
+++ b/test/pending/files/run/retsynch.scala
@@ -0,0 +1,11 @@
+object Test {
+ def abs(x:int): int = synchronized {
+ if(x > 0)
+ return x
+ return -x
+ }
+
+ def main(args: Array[String]) = {
+ Console.println("abs(-5) = " + abs(-5))
+ }
+}