Per the spec, macros are not allowed to be used in the same library they are defined, or in the same library cycle.
So, the analyzer should report an error.
Tests:
language/macros/error/declare_and_use_same_library_test
language/macros/error/declare_and_use_same_library_cycle_test
added here