summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-14 09:35:58 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-14 09:35:58 +0000
commitb0595e62261e1807f31e6dfd6bab1035c8101811 (patch)
treeca31100e6ac7ee04b37e38fd7a7b16e9a9150eab
parent4ed77eecc813a338841417814120f4548dd351e2 (diff)
downloadgcc-b0595e62261e1807f31e6dfd6bab1035c8101811.tar.gz
Fix typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24308 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/gcc.c-torture/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/920501-4.c27
2 files changed, 28 insertions, 3 deletions
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 <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 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