New fixed bug, distilled from 252.eon

llvm-svn: 8761
diff --git a/llvm/test/Regression/C++Frontend/2003-09-30-NestedFunctionDecl.cpp b/llvm/test/Regression/C++Frontend/2003-09-30-NestedFunctionDecl.cpp
new file mode 100644
index 0000000..77f6b1f
--- /dev/null
+++ b/llvm/test/Regression/C++Frontend/2003-09-30-NestedFunctionDecl.cpp
@@ -0,0 +1,10 @@
+// The C++ front-end thinks the two foo's are different, the LLVM emitter 
+// thinks they are the same.  The disconnect causes problems.
+
+void foo() { }
+
+void bar() {
+  void foo();
+ 
+  foo();
+}