aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/pr36017.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/pr36017.c')
-rw-r--r--gcc-4.8.1/gcc/testsuite/gcc.dg/pr36017.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/pr36017.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/pr36017.c
deleted file mode 100644
index 2af71e600..000000000
--- a/gcc-4.8.1/gcc/testsuite/gcc.dg/pr36017.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* PR rtl-optimization/36017 */
-/* { dg-do run } */
-/* { dg-options "-O2" } */
-
-extern double sqrt (double);
-extern void abort (void);
-
-__attribute__((noinline)) double
-foo (double a)
-{
- double b, c, d = 0.7;
- if (a <= d)
- b = sqrt (d * a);
- else
- {
- c = (1.0 - d) * (1.0 - a);
- b = c > 0 ? 1.0 - sqrt (c) : 1.0;
- }
- return b;
-}
-
-int
-main (void)
-{
- double c = foo (0.5);
- if (c > 0.5917)
- abort ();
- return 0;
-}