diff options
author | Nick Clifton <nickc@cygnus.com> | 1998-12-14 09:35:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 1998-12-14 09:35:58 +0000 |
commit | 9fe3461ee717754d600eadccaf6893f68b3e2c80 (patch) | |
tree | ca31100e6ac7ee04b37e38fd7a7b16e9a9150eab /gcc | |
parent | 11a0bb74cdf64f43744171b7e7c37258981a7741 (diff) | |
download | gcc-9fe3461ee717754d600eadccaf6893f68b3e2c80.zip gcc-9fe3461ee717754d600eadccaf6893f68b3e2c80.tar.gz gcc-9fe3461ee717754d600eadccaf6893f68b3e2c80.tar.bz2 |
Fix typo.
From-SVN: r24308
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/920501-4.c | 27 |
2 files changed, 28 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.c-torture/ChangeLog b/gcc/testsuite/gcc.c-torture/ChangeLog index 2f85aff..f268333 100644 --- a/gcc/testsuite/gcc.c-torture/ChangeLog +++ b/gcc/testsuite/gcc.c-torture/ChangeLog @@ -1,3 +1,7 @@ +1998-12-14 Nick Clifton <nickc@cygnus.com> + + * execute/920501-4.c (main): Fix typo: replace | with ||. + 1998-11-30 Nick Clifton <nickc@cygnus.com> * execute/981130-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/920501-4.c b/gcc/testsuite/gcc.c-torture/execute/920501-4.c index b936c49..3524dd5 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920501-4.c +++ b/gcc/testsuite/gcc.c-torture/execute/920501-4.c @@ -1,6 +1,27 @@ #ifndef NO_LABEL_VALUES -x(int i){static const void*j[]={&&x,&&y,&&z};goto*j[i];x:return 2;y:return 3;z:return 5;} -main(){if(x(0)!=2||x(1)!=3|x(2)!=5)abort();exit(0);} +int +x (int i) +{ + static const void *j[] = {&& x, && y, && z}; + + goto *j[i]; + + x: return 2; + y: return 3; + z: return 5; +} + +int +main (void) +{ + if ( x (0) != 2 + || x (1) != 3 + || x (2) != 5) + abort (); + + exit (0); +} #else -main(){ exit (0); } +int +main (void) { exit (0); } #endif |