summaryrefslogtreecommitdiff
path: root/test/files/run/repl-paste-raw-c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/repl-paste-raw-c.scala')
-rw-r--r--test/files/run/repl-paste-raw-c.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/repl-paste-raw-c.scala b/test/files/run/repl-paste-raw-c.scala
new file mode 100644
index 0000000000..600ac4d2f0
--- /dev/null
+++ b/test/files/run/repl-paste-raw-c.scala
@@ -0,0 +1,16 @@
+
+import scala.tools.partest.SessionTest
+
+object Test extends SessionTest {
+ def session =
+s"""|
+ |scala> :paste -raw $pastie
+ |Pasting file $pastie...
+ |$pastie:3: error: expected class or object definition
+ |val nope = 42
+ |^
+ |There were compilation errors!
+ |
+ |scala> :quit"""
+ def pastie = testPath changeExtension "pastie"
+}