Skip to content

Commit

Permalink
[clang][NFC] Add a test for CWG2254 to `is_pointer_interconvertible_b…
Browse files Browse the repository at this point in the history
…ase_of` tests

Resolution of that issue makes _any_ base class subobject interconvertible with the containing object, not just the first one.
  • Loading branch information
Endilll committed Apr 13, 2024
1 parent 910ec6f commit cbfcfdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/test/SemaCXX/type-traits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1864,6 +1864,7 @@ void is_pointer_interconvertible_base_of(int n)
static_assert(!__is_pointer_interconvertible_base_of(Base2, Derived));
static_assert(__is_pointer_interconvertible_base_of(Base, DerivedIndirect));
static_assert(__is_pointer_interconvertible_base_of(Base, DerivedMultiple));
static_assert(__is_pointer_interconvertible_base_of(Base2, DerivedMultiple));
static_assert(!__is_pointer_interconvertible_base_of(Base3, DerivedMultiple));
static_assert(!__is_pointer_interconvertible_base_of(Base, DerivedAmbiguous));
static_assert(__is_pointer_interconvertible_base_of(Base, DerivedPrivate));
Expand Down

0 comments on commit cbfcfdf

Please sign in to comment.