]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libstdc++-v3/testsuite/26_numerics/complex/pow.cc
Imported gcc-4.4.3
[msp430-gcc.git] / libstdc++-v3 / testsuite / 26_numerics / complex / pow.cc
diff --git a/libstdc++-v3/testsuite/26_numerics/complex/pow.cc b/libstdc++-v3/testsuite/26_numerics/complex/pow.cc
new file mode 100644 (file)
index 0000000..d0b8e90
--- /dev/null
@@ -0,0 +1,16 @@
+// { dg-do run { xfail broken_cplxf_arg } }
+// 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;
+}