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)
llvm-svn: 212285

clang/test/CodeGen/indirect-goto.c

index 22dbcad..a3b45e4 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];