aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/macro-exception
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/macro-exception')
-rw-r--r--tests/untried/neg/macro-exception/Macros_1.scala9
-rw-r--r--tests/untried/neg/macro-exception/Test_2.scala3
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/untried/neg/macro-exception/Macros_1.scala b/tests/untried/neg/macro-exception/Macros_1.scala
new file mode 100644
index 000000000..cd8e3c844
--- /dev/null
+++ b/tests/untried/neg/macro-exception/Macros_1.scala
@@ -0,0 +1,9 @@
+import scala.language.experimental.macros
+import scala.reflect.macros.blackbox.Context
+
+object Macros {
+ def impl(c: Context) = {
+ throw new Exception()
+ }
+ def exception = macro impl
+}
diff --git a/tests/untried/neg/macro-exception/Test_2.scala b/tests/untried/neg/macro-exception/Test_2.scala
new file mode 100644
index 000000000..223ee32c9
--- /dev/null
+++ b/tests/untried/neg/macro-exception/Test_2.scala
@@ -0,0 +1,3 @@
+object Test extends App {
+ Macros.exception
+}