OSDN Git Service

Fix typo.
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 1998 09:35:58 +0000 (09:35 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 1998 09:35:58 +0000 (09:35 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24308 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.c-torture/ChangeLog
gcc/testsuite/gcc.c-torture/execute/920501-4.c

index 2f85aff..f268333 100644 (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.
index b936c49..3524dd5 100644 (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