diff options
author | Jeffrey A Law <law@cygnus.com> | 1999-08-04 07:18:41 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-08-04 01:18:41 -0600 |
commit | 6d368e86d0a68776e5eb06d7bb90a6ca360ac837 (patch) | |
tree | e817eb52406ac8aa3c6389e611b7a843b668fadd /gcc | |
parent | e8fe3cc34e9a4cdc8cc183276d772cc6558e94b1 (diff) | |
download | gcc-6d368e86d0a68776e5eb06d7bb90a6ca360ac837.zip gcc-6d368e86d0a68776e5eb06d7bb90a6ca360ac837.tar.gz gcc-6d368e86d0a68776e5eb06d7bb90a6ca360ac837.tar.bz2 |
* gcc.c-torture/execute/990804-1.c: New test.
From-SVN: r28484
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/990804-1.c | 30 |
2 files changed, 34 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ba0cc11..dad74b1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Wed Aug 4 01:17:17 1999 Jeffrey A Law (law@cygnus.com) + + * gcc.c-torture/execute/990804-1.c: New test. + 1999-08-03 Nathan Sidwell <nathan@acm.org> * g++.old-deja/g++.brendan/crash63.C: Expect a POD warning diff --git a/gcc/testsuite/gcc.c-torture/execute/990804-1.c b/gcc/testsuite/gcc.c-torture/execute/990804-1.c new file mode 100644 index 0000000..130c0fb --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/990804-1.c @@ -0,0 +1,30 @@ +int gfbyte ( void ) +{ + return 0; +} + +int main( void ) +{ + int i,j,k ; + + i = gfbyte(); + + i = i + 1 ; + + if ( i == 0 ) + k = -0 ; + else + k = i + 0 ; + + if (i != 1) + abort (); + + k = 1 ; + if ( k <= i) + do + j = gfbyte () ; + while ( k++ < i ) ; + + exit (0); +} + |