r212285 - Restore global static array in test case

Gerolf Hoflehner ghoflehner at apple.com
Thu Jul 3 12:30:33 PDT 2014


Author: ghoflehner
Date: Thu Jul  3 14:30:33 2014
New Revision: 212285

URL: http://llvm.org/viewvc/llvm-project?rev=212285&view=rev
Log:
Restore global static array in test case

Modified:
    cfe/trunk/test/CodeGen/indirect-goto.c

Modified: cfe/trunk/test/CodeGen/indirect-goto.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/indirect-goto.c?rev=212285&r1=212284&r2=212285&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/indirect-goto.c (original)
+++ cfe/trunk/test/CodeGen/indirect-goto.c Thu Jul  3 14:30:33 2014
@@ -14,7 +14,7 @@ static int foo(unsigned i) {
 }
 
 static int foo2(unsigned i) {
-  const void *addrs[] = { &&L1, &&L2, &&L3, &&L4, &&L5 };
+  static const void *addrs[] = { &&L1, &&L2, &&L3, &&L4, &&L5 };
   int res = 1;
   
   goto *addrs[i];





More information about the cfe-commits mailing list