OSDN Git Service

New.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Sep 2002 17:19:37 +0000 (17:19 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Sep 2002 17:19:37 +0000 (17:19 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57657 138bc75d-0d04-0410-961f-82ee72b054a4

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;
+}