aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/comptest.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-06 18:40:09 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-06 18:42:54 +0100
commitab62ca99a31ccd1984b875f7040b430bfccc2724 (patch)
tree202e07d6d74068767d40ec958dd434d5e34bd8ce /test/dotc/comptest.scala
parent56a11807feaa00f81504925a5b95ebf7b8dab689 (diff)
downloaddotty-ab62ca99a31ccd1984b875f7040b430bfccc2724.tar.gz
dotty-ab62ca99a31ccd1984b875f7040b430bfccc2724.tar.bz2
dotty-ab62ca99a31ccd1984b875f7040b430bfccc2724.zip
Checking for already existing symbols before creating new ones.
Otherwise we get spurious "compiled twice" errors on every symbol defined in a run after the first one. Also, fixed a bug so that now run ids are correctly incremented.
Diffstat (limited to 'test/dotc/comptest.scala')
-rw-r--r--test/dotc/comptest.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/dotc/comptest.scala b/test/dotc/comptest.scala
new file mode 100644
index 000000000..fda5214cf
--- /dev/null
+++ b/test/dotc/comptest.scala
@@ -0,0 +1,13 @@
+package dotc
+
+import test._
+
+object comptest extends CompilerTest {
+
+ val posDir = "/Users/odersky/workspace/dotty/tests/pos/"
+ val negDir = "/Users/odersky/workspace/dotty/tests/neg/"
+ val dotcDir = "/Users/odersky/workspace/dotty/src/dotty/"
+
+ def main(args: Array[String]) =
+ compileFile(posDir, "typers", List("-Xprompt", "-Ylog:frontend", "#runs", "2"))
+} \ No newline at end of file