aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/20080502-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/20080502-1.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/20080502-1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/20080502-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/20080502-1.c
new file mode 100644
index 00000000..ed9b2085
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/20080502-1.c
@@ -0,0 +1,16 @@
+/* PR target/36090 */
+
+extern void abort (void);
+
+long double __attribute__ ((noinline)) foo (long double x)
+{
+ return __builtin_signbit (x) ? 3.1415926535897932384626433832795029L : 0.0;
+}
+
+int
+main (void)
+{
+ if (foo (-1.0L) != 3.1415926535897932384626433832795029L)
+ abort ();
+ return 0;
+}