summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-30 17:19:37 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-09-30 17:19:37 +0000
commit5a1bf3680c4b08dd39b46a156a73b404770db163 (patch)
tree93479dcb95d6d0a1b9903837a7d96eb8edd6e59a
parent2b9b5c6fbf40afa0b3415a7f06c94052f4464494 (diff)
downloadppe42-gcc-5a1bf3680c4b08dd39b46a156a73b404770db163.tar.gz
ppe42-gcc-5a1bf3680c4b08dd39b46a156a73b404770db163.zip
New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57657 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20020930-1.c10
1 files changed, 10 insertions, 0 deletions
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
index 00000000000..d2fa3748ab5
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20020930-1.c
@@ -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;
+}
OpenPOWER on IntegriCloud