diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal_type_qualifier.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal_type_qualifier.pass.cpp new file mode 100644 --- /dev/null +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal_type_qualifier.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include +#include +int main(int, char**) { + char* a; + assert(std::equal(a, a, a)); + const char* b; + assert(std::equal(b, b, b)); + volatile char* c; + assert(std::equal(c, c, c)); + + return 0; +}