summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-exception/Macros_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/macro-exception/Macros_1.scala')
-rw-r--r--test/files/neg/macro-exception/Macros_1.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/macro-exception/Macros_1.scala b/test/files/neg/macro-exception/Macros_1.scala
new file mode 100644
index 0000000000..60e4020aec
--- /dev/null
+++ b/test/files/neg/macro-exception/Macros_1.scala
@@ -0,0 +1,9 @@
+import scala.language.experimental.macros
+import scala.reflect.macros.Context
+
+object Macros {
+ def impl(c: Context) = {
+ throw new Exception()
+ }
+ def exception = macro impl
+} \ No newline at end of file