Fix typo.
authorNick Clifton <nickc@cygnus.com>
Mon, 14 Dec 1998 09:35:58 +0000 (09:35 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Mon, 14 Dec 1998 09:35:58 +0000 (09:35 +0000)
From-SVN: r24308

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

index 2f85aff5f48e8f2f936ffcad0c423130278b4308..f268333ed76581f1b97cf3e26f9e3a2cc0c56992 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 b936c4984b60579c4ff14ccbdc45a210589ddd17..3524dd5c8b2552a9348eee684bc66cfbb6afa983 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