Permalink
Browse files

Add test for t5695 in pending/run

  • Loading branch information...
phaller committed May 6, 2012
1 parent 7cac633 commit 96e42cfd7e58c4be5f83975e463a7b9d3bd7eec9
Showing with 22 additions and 0 deletions.
  1. +2 −0 test/pending/run/t5695.check
  2. +12 −0 test/pending/run/t5695/part_1.scala
  3. +8 −0 test/pending/run/t5695/part_2.scala
@@ -0,0 +1,2 @@
..
..
@@ -0,0 +1,12 @@
import language.experimental.macros
import scala.reflect.makro.Context
object Defs {
def mkInt = macro mkIntImpl
def mkIntImpl(c: Context): c.Expr[Any] = {
println(c.enclosingApplication)
c.reify{ 23 }
}
}
@@ -0,0 +1,8 @@
import Defs._
object Test extends App {
val i1 = mkInt
val i2 = identity(mkInt)
}

0 comments on commit 96e42cf

Please sign in to comment.