2019-10-31 Jonathan Wakely <jwakely@redhat.com>
+ * testsuite/20_util/add_pointer/value.cc: Check void types.
+
* include/bits/range_access.h (__sizable): Rename to __sentinel_size.
Remove workaround for PR c++/92268 and remove redundant requirements
that are already checked by sized_sentinel_for.
static_assert(is_same<add_pointer<const int>::type, const int*>::value, "");
static_assert(is_same<add_pointer<int&>::type, int*>::value, "");
static_assert(is_same<add_pointer<ClassType*>::type,
- ClassType**>::value, "");
+ ClassType**>::value, "");
static_assert(is_same<add_pointer<ClassType>::type, ClassType*>::value, "");
+ static_assert(is_same<add_pointer<void>::type, void*>::value, "");
+ static_assert(is_same<add_pointer<const void>::type, const void*>::value, "");
+ static_assert(is_same<add_pointer<volatile void>::type,
+ volatile void*>::value, "");
+ static_assert(is_same<add_pointer<const volatile void>::type,
+ const volatile void*>::value, "");
}
void test02()