* gcc.dg/20001117-1.c: Add main.

From-SVN: r37854
This commit is contained in:
Jakub Jelinek 2000-11-29 21:13:47 +01:00 committed by Jakub Jelinek
parent f3b55474b6
commit 78cd99d0ab
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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);
}