Do up codegen for function static data and externs in functions in block
literals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66984 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/blocks-1.c b/test/CodeGen/blocks-1.c
index df2a3fd..8572f8d 100644
--- a/test/CodeGen/blocks-1.c
+++ b/test/CodeGen/blocks-1.c
@@ -41,9 +41,20 @@
^{j=0; k=0;}();
}
+int test4() {
+ extern int g;
+ static int i = 1;
+ ^(int j){ i = j; g = 0; }(0);
+ return i + g;
+}
+
+int g;
+
int main() {
+ int rv = 0;
test1();
test2();
test3();
- return 0;
+ rv += test4();
+ return rv;
}