summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/dfp
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-11 14:52:16 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-11 14:52:16 +0000
commit699456467ce74df6879e7d9baf48b774eae32ac6 (patch)
tree15b58ac6468105ef8a7eda80cf951f303edd8380 /gcc/testsuite/gcc.dg/dfp
parent3665047ec31ad754105881dcace2c477fffbe507 (diff)
downloadgcc-699456467ce74df6879e7d9baf48b774eae32ac6.tar.gz
2008-09-11 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r140286 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@140290 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/dfp')
-rw-r--r--gcc/testsuite/gcc.dg/dfp/pr37435.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/dfp/pr37435.c b/gcc/testsuite/gcc.dg/dfp/pr37435.c
new file mode 100644
index 00000000000..98acc9c118b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/dfp/pr37435.c
@@ -0,0 +1,11 @@
+/* { dg-do compile { target fpic } } */
+/* { dg-options "-std=gnu99 -O2 -fPIC" } */
+
+volatile _Decimal32 d;
+volatile int i;
+
+void foo()
+{
+ d += i;
+ d += i;
+}