summaryrefslogtreecommitdiff
path: root/test/pending/run
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-03-28 14:47:06 +0000
committermihaylov <mihaylov@epfl.ch>2006-03-28 14:47:06 +0000
commitabc7c2c51c2e0e2cdaca71b38776d91b50e0b690 (patch)
treea472a2b93a16994a69f1632fc565ec7795568e87 /test/pending/run
parente858e292e5871848c8665ebad177a6592aeec740 (diff)
downloadscala-abc7c2c51c2e0e2cdaca71b38776d91b50e0b690.tar.gz
scala-abc7c2c51c2e0e2cdaca71b38776d91b50e0b690.tar.bz2
scala-abc7c2c51c2e0e2cdaca71b38776d91b50e0b690.zip
Rearranged directories in test/pending/
Diffstat (limited to 'test/pending/run')
-rw-r--r--test/pending/run/retsynch.check1
-rw-r--r--test/pending/run/retsynch.scala11
2 files changed, 12 insertions, 0 deletions
diff --git a/test/pending/run/retsynch.check b/test/pending/run/retsynch.check
new file mode 100644
index 0000000000..8c40598f93
--- /dev/null
+++ b/test/pending/run/retsynch.check
@@ -0,0 +1 @@
+abs(-5) = 5
diff --git a/test/pending/run/retsynch.scala b/test/pending/run/retsynch.scala
new file mode 100644
index 0000000000..d6398cf28e
--- /dev/null
+++ b/test/pending/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))
+ }
+}