diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-03-28 14:43:41 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-03-28 14:43:41 +0000 |
commit | e858e292e5871848c8665ebad177a6592aeec740 (patch) | |
tree | 82e800e0c1b1e6cfa749b55fa3344139b9aa61e2 /test/pending/files/run | |
parent | 2b4f59122107e662f6bce683956069a4a03cd128 (diff) | |
download | scala-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.check | 1 | ||||
-rw-r--r-- | test/pending/files/run/retsynch.scala | 11 |
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)) + } +} |