New fixed bug, distilled from 252.eon
authorChris Lattner <sabre@nondot.org>
Tue, 30 Sep 2003 15:40:25 +0000 (15:40 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Sep 2003 15:40:25 +0000 (15:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8761 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp b/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp
new file mode 100644 (file)
index 0000000..77f6b1f
--- /dev/null
@@ -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();
+}