Test case for -femit-all-decls.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63777 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/emit-all-decls.c b/test/CodeGen/emit-all-decls.c
new file mode 100644
index 0000000..68b6aec
--- /dev/null
+++ b/test/CodeGen/emit-all-decls.c
@@ -0,0 +1,8 @@
+// RUN: clang -emit-llvm -o %t %s &&
+// RUN: not grep "@foo" %t &&
+// RUN: clang -femit-all-decls -emit-llvm -o %t %s &&
+// RUN: grep "@foo" %t
+
+static void foo() {
+  
+}