Fix virtual inheritance parsing (#137)
This commit is contained in:
parent
e558e2d58f
commit
19cbc378f8
2 changed files with 22 additions and 4 deletions
|
|
@ -84,6 +84,13 @@ struct f
|
|||
: public ns::base, virtual protected e
|
||||
{};
|
||||
|
||||
/// struct f2
|
||||
/// :ns::base,virtual protected e{
|
||||
/// };
|
||||
struct f2
|
||||
: public ns::base, protected virtual e
|
||||
{};
|
||||
|
||||
using namespace ns;
|
||||
|
||||
/// struct g
|
||||
|
|
@ -234,7 +241,7 @@ struct g
|
|||
}
|
||||
REQUIRE(no_bases == 2u);
|
||||
}
|
||||
else if (c.name() == "f")
|
||||
else if (c.name() == "f" || c.name() == "f2")
|
||||
{
|
||||
REQUIRE(c.is_definition());
|
||||
REQUIRE(!c.is_declaration());
|
||||
|
|
@ -298,5 +305,5 @@ struct g
|
|||
else
|
||||
REQUIRE(false);
|
||||
});
|
||||
REQUIRE(count == 12u);
|
||||
REQUIRE(count == 13u);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue