New.
authorRichard Henderson <rth@gcc.gnu.org>
Mon, 30 Sep 2002 17:19:37 +0000 (10:19 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 30 Sep 2002 17:19:37 +0000 (10:19 -0700)
From-SVN: r57657

gcc/testsuite/gcc.c-torture/compile/20020930-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/compile/20020930-1.c b/gcc/testsuite/gcc.c-torture/compile/20020930-1.c
new file mode 100644 (file)
index 0000000..d2fa374
--- /dev/null
@@ -0,0 +1,10 @@
+/* PR c/8002 */
+
+float expm1f(float x) {
+     union {
+         float value;
+         unsigned word;
+     } sf_u;
+     sf_u.word = (unsigned) x * 2;
+     return x + sf_u.value;
+}