Fix typo.

From-SVN: r24308
This commit is contained in:
Nick Clifton 1998-12-14 09:35:58 +00:00 committed by Nick Clifton
parent 11a0bb74cd
commit 9fe3461ee7
2 changed files with 28 additions and 3 deletions

View File

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

View File

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