diff options
Diffstat (limited to 'libcxx/test/std/utilities/memory/default.allocator/allocator_types.removed_in_cxx20.verify.cpp')
-rw-r--r-- | libcxx/test/std/utilities/memory/default.allocator/allocator_types.removed_in_cxx20.verify.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libcxx/test/std/utilities/memory/default.allocator/allocator_types.removed_in_cxx20.verify.cpp b/libcxx/test/std/utilities/memory/default.allocator/allocator_types.removed_in_cxx20.verify.cpp index 9805accda20a..1d91a022867d 100644 --- a/libcxx/test/std/utilities/memory/default.allocator/allocator_types.removed_in_cxx20.verify.cpp +++ b/libcxx/test/std/utilities/memory/default.allocator/allocator_types.removed_in_cxx20.verify.cpp @@ -31,16 +31,17 @@ template <typename T> void check() { - typedef typename std::allocator<T>::pointer AP; // expected-error 2 {{no type named 'pointer'}} - typedef typename std::allocator<T>::const_pointer ACP; // expected-error 2 {{no type named 'const_pointer'}} - typedef typename std::allocator<T>::reference AR; // expected-error 2 {{no type named 'reference'}} - typedef typename std::allocator<T>::const_reference ACR; // expected-error 2 {{no type named 'const_reference'}} - typedef typename std::allocator<T>::template rebind<int>::other ARO; // expected-error 2 {{no member named 'rebind'}} + typedef typename std::allocator<T>::pointer AP; // expected-error 3 {{no type named 'pointer'}} + typedef typename std::allocator<T>::const_pointer ACP; // expected-error 3 {{no type named 'const_pointer'}} + typedef typename std::allocator<T>::reference AR; // expected-error 3 {{no type named 'reference'}} + typedef typename std::allocator<T>::const_reference ACR; // expected-error 3 {{no type named 'const_reference'}} + typedef typename std::allocator<T>::template rebind<int>::other ARO; // expected-error 3 {{no member named 'rebind'}} } int main(int, char**) { check<char>(); check<char const>(); + check<void>(); return 0; } |