File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ class TestTokenizer : public TestFixture {
435435 TEST_CASE (astthrowdelete);
436436 TEST_CASE (asttrailingdecltype);
437437 TEST_CASE (astnoexcept);
438+ TEST_CASE (astnoexceptrequires);
438439 TEST_CASE (astvardecl);
439440 TEST_CASE (astnewscoped);
440441 TEST_CASE (astdecltypescope);
@@ -7582,6 +7583,9 @@ class TestTokenizer : public TestFixture {
75827583 ASSERT_EQUALS (" noexceptaswap.b((" , testAst (" void f() noexcept(noexcept(a.swap(b))) {}" ));
75837584 ASSERT_EQUALS (" {([ noexceptaswap.b((" , testAst (" []() noexcept(noexcept(a.swap(b))) {}" ));
75847585 }
7586+ void astnoexceptrequires () {
7587+ ASSERT_EQUALS (" N5>=" , testAst (" void f() noexcept requires (N >= 5) {}" ));
7588+ }
75857589
75867590 // Verify that returning a newly constructed object generates the correct AST even when the class name is scoped
75877591 // Addresses https://trac.cppcheck.net/ticket/9700
You can’t perform that action at this time.
0 commit comments