mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 03:46:47 +08:00
Fix typo.
From-SVN: r24308
This commit is contained in:
parent
11a0bb74cd
commit
9fe3461ee7
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user