Implement mangling of declarations inside functions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68321 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp
index e9a76c9..f608a22 100644
--- a/test/CodeGenCXX/mangle.cpp
+++ b/test/CodeGenCXX/mangle.cpp
@@ -39,5 +39,8 @@
 // RUN: grep unmangled_variable %t | count 1 &&
 extern "C" { namespace N { int unmangled_variable; } }
 
-// RUN: grep _ZN1N1iE %t | count 1
+// RUN: grep _ZN1N1iE %t | count 1 &&
 namespace N { int i; }
+
+// RUN: grep _ZZN1N1fEiiE1b %t | count 2
+namespace N { int f(int, int) { static int b; return b; } }