[libcxx-commits] [libcxx] [libcxx] Change the return type of pow(complex<float>, int) (PR #128779)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 25 16:28:24 PST 2025


================
@@ -82,5 +82,8 @@ int main(int, char**) {
   assert(pow(ctag, std::complex<long double>(1.0l)) == 4);
   assert(pow(std::complex<long double>(1.0l), ctag) == 5);
 
+  // Make sure LWG4191: P1467 is respected.
----------------
frederick-vs-ja wrote:

IIUC the `libcxx/test/libcxx` subdirectory is intendedly used for libc++-specific implementation details and extensions. As we're testing implementation of standard requirements, I think it's better not to add cases here.

https://github.com/llvm/llvm-project/pull/128779


More information about the libcxx-commits mailing list