diff --git a/gcc/testsuite/gcc.c-torture/ChangeLog b/gcc/testsuite/gcc.c-torture/ChangeLog index 2f85aff5f48..f268333ed76 100644 --- a/gcc/testsuite/gcc.c-torture/ChangeLog +++ b/gcc/testsuite/gcc.c-torture/ChangeLog @@ -1,3 +1,7 @@ +1998-12-14 Nick Clifton + + * execute/920501-4.c (main): Fix typo: replace | with ||. + 1998-11-30 Nick Clifton * 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 b936c4984b6..3524dd5c8b2 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