Skip to content

Commit a153151

Browse files
committed
test
1 parent 777a112 commit a153151

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/testtokenize.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)