Annotate attribute on declarations

The annotate attribute does not get emitted on declarations. Consider the following example:

#define A(x) attribute((annotate(x)))

A(“foo”) void foo(void);

A(“bar”) void bar(){foo();}

Here, only bar gets an annotation.

I was wondering is this is the intended behavior or if I should file a bug.

Kind regards,

Job Noorman