These macros cannot be used to generate valid output and it has been like that since their introduction 10 years ago.
Chaining is to be used for function chunks out of the main function's region, and RUNTIME_FUNCTION ranges should never intersect or overlap. The current implementation *only* allows such use that the generated output contains overlapping ones, which is invalid (and also ignored by windows). Additionally, the current syntax is not suitable for implementing any correct behavior, as the chained function chunk should refer to the info or function it chains to, which is not done in the current syntax. A search on search engines and github show that this macro wasn't used outside of LLVM (which is understandable as it never worked) so I think this warrants the NFC tag.
The tests also exhibit the incorrect behavior, and pass since the offsets are regexed out so overlapping ranges don't fail.
clang-format: please reformat the code