aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/macro-exception/Macros_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/macro-exception/Macros_1.scala')
-rw-r--r--tests/untried/neg/macro-exception/Macros_1.scala9
1 files changed, 9 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
+}