]> granicus.if.org Git - clang/commitdiff
Restore global static array in test case
authorGerolf Hoflehner <ghoflehner@apple.com>
Thu, 3 Jul 2014 19:30:33 +0000 (19:30 +0000)
committerGerolf Hoflehner <ghoflehner@apple.com>
Thu, 3 Jul 2014 19:30:33 +0000 (19:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212285 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/indirect-goto.c

index 22dbcad367b04a983420b3a4cdc296a9c7396294..a3b45e49af90a2a4a9ec9fcc1da6270a9fcb5b51 100644 (file)
@@ -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];