--TEST--
Deprecating a macro with "deprecated" tag
--TEMPLATE--
{% import 'greeting.twig' as greeting %}

{{ greeting.welcome('Fabien') }}

--TEMPLATE(greeting.twig)--
{% macro welcome(name) %}
  {% deprecated 'The "welcome" macro is deprecated, use "hello" instead.' %}
  {% import _self as self %}
  {{ self.hello(name) }}
{% endmacro %}

{% macro hello(name) %}
Hello {{ name }}
{% endmacro %}
--DATA--
return []
--EXPECT--
  Hello Fabien
