]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Fri, 17 Dec 2004 16:11:09 +0000 (16:11 +0000)
committerNo Author <no-author@gcc.gnu.org>
Fri, 17 Dec 2004 16:11:09 +0000 (16:11 +0000)
'gcc-3_4-branch'.

From-SVN: r92319

gcc/testsuite/gcc.c-torture/execute/ieee/20041213-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/20041213-1.c b/gcc/testsuite/gcc.c-torture/execute/ieee/20041213-1.c
new file mode 100644 (file)
index 0000000..07bdf68
--- /dev/null
@@ -0,0 +1,17 @@
+extern double sqrt (double);
+extern void abort (void);
+int once;
+
+double foo (void)
+{
+  if (once++)
+    abort ();
+  return 0.0 / 0.0;
+}
+
+double x;
+int main (void)
+{
+  x = sqrt (foo ());
+  return 0;
+}