aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvsalvis <salvisbergvera@gmail.com>2015-05-09 18:35:04 +0200
committervsalvis <salvisbergvera@gmail.com>2015-05-12 11:19:34 +0200
commitca3fc43bb3f9eb0068669acf6e64b3c6bd310511 (patch)
treeef7e0a16a5162d9f812b7e907b125944c3f1dd8e /tests
parent2da8afdca1c357d6cada891c70e68e386c44c2f3 (diff)
downloaddotty-ca3fc43bb3f9eb0068669acf6e64b3c6bd310511.tar.gz
dotty-ca3fc43bb3f9eb0068669acf6e64b3c6bd310511.tar.bz2
dotty-ca3fc43bb3f9eb0068669acf6e64b3c6bd310511.zip
Run tests for partest
Diffstat (limited to 'tests')
-rw-r--r--tests/run/hello.check1
-rw-r--r--tests/run/hello.scala3
-rw-r--r--tests/run/lazyVals.check1
-rw-r--r--tests/run/lazyVals.scala8
4 files changed, 13 insertions, 0 deletions
diff --git a/tests/run/hello.check b/tests/run/hello.check
new file mode 100644
index 000000000..6c70cd9e8
--- /dev/null
+++ b/tests/run/hello.check
@@ -0,0 +1 @@
+hello dotty!
diff --git a/tests/run/hello.scala b/tests/run/hello.scala
new file mode 100644
index 000000000..9224cec05
--- /dev/null
+++ b/tests/run/hello.scala
@@ -0,0 +1,3 @@
+object Test {
+ def main(args: Array[String]): Unit = println("hello dotty!")
+}
diff --git a/tests/run/lazyVals.check b/tests/run/lazyVals.check
new file mode 100644
index 000000000..f70d7bba4
--- /dev/null
+++ b/tests/run/lazyVals.check
@@ -0,0 +1 @@
+42 \ No newline at end of file
diff --git a/tests/run/lazyVals.scala b/tests/run/lazyVals.scala
new file mode 100644
index 000000000..db91dbcd6
--- /dev/null
+++ b/tests/run/lazyVals.scala
@@ -0,0 +1,8 @@
+object Test {
+ def foo = {
+ lazy val s = 42 // needs LazyIntHolder
+ s
+ }
+
+ def main(args: Array[String]): Unit = println(foo)
+}