Skip to content

Commit cbfcfdf

Browse files
committed
[clang][NFC] Add a test for CWG2254 to is_pointer_interconvertible_base_of tests
Resolution of that issue makes _any_ base class subobject interconvertible with the containing object, not just the first one.
1 parent 910ec6f commit cbfcfdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/test/SemaCXX/type-traits.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,6 +1864,7 @@ void is_pointer_interconvertible_base_of(int n)
18641864
static_assert(!__is_pointer_interconvertible_base_of(Base2, Derived));
18651865
static_assert(__is_pointer_interconvertible_base_of(Base, DerivedIndirect));
18661866
static_assert(__is_pointer_interconvertible_base_of(Base, DerivedMultiple));
1867+
static_assert(__is_pointer_interconvertible_base_of(Base2, DerivedMultiple));
18671868
static_assert(!__is_pointer_interconvertible_base_of(Base3, DerivedMultiple));
18681869
static_assert(!__is_pointer_interconvertible_base_of(Base, DerivedAmbiguous));
18691870
static_assert(__is_pointer_interconvertible_base_of(Base, DerivedPrivate));

0 commit comments

Comments
 (0)