[clang] NFC: test for undefined behaviour in RawComment::getFormattedText()
authorDmitry Polukhin <dmitry.polukhin@gmail.com>
Fri, 4 Jun 2021 21:41:53 +0000 (14:41 -0700)
committerDmitry Polukhin <dmitry.polukhin@gmail.com>
Mon, 7 Jun 2021 10:05:00 +0000 (03:05 -0700)
commitaa0d7179bbb3fd24bc9eb1fd6203565dbd50e8d8
tree1778438d061587629c081bda938b8448a330b9b2
parent1da2c7d25c0926b1ebac5855ab099b004b6a827a
[clang] NFC: test for undefined behaviour in RawComment::getFormattedText()

This diff adds testcase for the issue fixed in https://reviews.llvm.org/D77468
but regression test was not added in the diff. On Clang 9 it caused
crash in cland during code completion.

Test Plan: check-clang-unit

Differential Revision: https://reviews.llvm.org/D103722
clang/unittests/AST/CommentTextTest.cpp