//> using options -Werror -Xlint:unused -Wmacros:after
import scala.language.experimental.macros

object Unused extends App {
  def m(body: Int): Int = macro UnusedMacro.macroImpl

  private def g(): Int = 17

  // g is used before but not after expansion
  def f(): Int = m(g())

  println(f())
}
