aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-11-29 21:13:47 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2000-11-29 21:13:47 +0100
commit78cd99d0ababf2bef907f64bb6dca83ffeb5a46a (patch)
tree5a5ceb7ed448ef57287f5e8917d71b87cb3c0bca /gcc
parentf3b55474b6ea6a1fdfb31513815893b027f37a32 (diff)
downloadgcc-78cd99d0ababf2bef907f64bb6dca83ffeb5a46a.zip
gcc-78cd99d0ababf2bef907f64bb6dca83ffeb5a46a.tar.gz
gcc-78cd99d0ababf2bef907f64bb6dca83ffeb5a46a.tar.bz2
* gcc.dg/20001117-1.c: Add main.
From-SVN: r37854
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/gcc.dg/20001117-1.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d957093..ca635bf 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -4,6 +4,8 @@
tests.
* gcc.c-torture/execute/string-opt-6.c: New test.
+ * gcc.dg/20001117-1.c: Add main.
+
2000-11-28 Geoffrey Keating <geoffk@redhat.com>
* gcc.dg/noncompile/940510-1.c: Update to test c89 functionality.
diff --git a/gcc/testsuite/gcc.dg/20001117-1.c b/gcc/testsuite/gcc.dg/20001117-1.c
index 7266b01..a03c671 100644
--- a/gcc/testsuite/gcc.dg/20001117-1.c
+++ b/gcc/testsuite/gcc.dg/20001117-1.c
@@ -13,3 +13,10 @@ foo (double a, double b)
return 0;
return 2.0 * (b - c);
}
+
+int main ()
+{
+ if (foo (1.0, 4.0) != 6.0)
+ abort ();
+ exit (0);
+}