Add test for an invalid requirement in requires expr.
authorUtkarsh Saxena <usx@google.com>
Mon, 16 Jan 2023 06:29:38 +0000 (07:29 +0100)
committerUtkarsh Saxena <usx@google.com>
Mon, 16 Jan 2023 11:28:49 +0000 (12:28 +0100)
commit15ad244670a9ef0bf93b7c8a598586d4a841b197
tree15946f6b64f58f568c1b1098877f1491451c81d6
parentef8cdf6d9492b6a24323443c4dfbd76be5690c36
Add test for an invalid requirement in requires expr.

The one introduced in D140547 was brittle. Fixing max template depth to
a small value would still test the same issue without causing actual
stack exhaustion.

Differential Revision: https://reviews.llvm.org/D141818
clang/test/SemaCXX/invalid-requirement-requires-expr.cpp [new file with mode: 0644]