ptr_arg: honor allow
attribute on arguments
#5647
Merged
allow
attribute on arguments
#5647