summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/26_numerics/complex/pow.cc
blob: 393b7a4e4f20591f051dae0600ce0522614bd842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR libstdc++/10689
// Origin: Daniel.Levine@jhuaph.edu
// { dg-options "-mieee" { target alpha*-*-* } }

#include <complex>
#include <testsuite_hooks.h>

int main()
{
   std::complex<double> z;

   VERIFY( pow(z, 1.0/3.0) == 0.0 );

   return 0;
}