aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/C++Frontend/2006-09-08-powi.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/C++Frontend/2006-09-08-powi.cpp b/test/C++Frontend/2006-09-08-powi.cpp
new file mode 100644
index 0000000000..ceebc18104
--- /dev/null
+++ b/test/C++Frontend/2006-09-08-powi.cpp
@@ -0,0 +1,7 @@
+// RUN: llvm-g++ -O3 -S -o - %s
+
+#include <cmath>
+
+double foo(double X, int Y) {
+ return std::pow(X, Y);
+}