aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/builtins-22.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/builtins-22.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/builtins-22.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/builtins-22.c b/gcc-4.9/gcc/testsuite/gcc.dg/builtins-22.c
new file mode 100644
index 000000000..916890b40
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/builtins-22.c
@@ -0,0 +1,12 @@
+/* Related to PR optimization/10764 */
+
+/* { dg-do compile } */
+/* { dg-options "-O2 -ffast-math" } */
+
+double exp(double x);
+
+double foo(double x)
+{
+ return exp(exp(x));
+}
+