Skip to content

Commit

Permalink
Add test for t5695 in pending/run
Browse files Browse the repository at this point in the history
  • Loading branch information
phaller committed May 6, 2012
1 parent 7cac633 commit 96e42cf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/pending/run/t5695.check
@@ -0,0 +1,2 @@
..
..
12 changes: 12 additions & 0 deletions test/pending/run/t5695/part_1.scala
@@ -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 }
}

}
8 changes: 8 additions & 0 deletions test/pending/run/t5695/part_2.scala
@@ -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.