summaryrefslogtreecommitdiffstats
path: root/test/C++Frontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-30 15:40:25 +0000
committerChris Lattner <sabre@nondot.org>2003-09-30 15:40:25 +0000
commit56a4279d616e084ced2cf5e09fd69e371b6382a5 (patch)
tree76174b9db6afdab82dfa52590c95f634090f0687 /test/C++Frontend
parente98ddfce7edbcdcce0e60d4162da1306228c3f4a (diff)
downloadexternal_llvm-56a4279d616e084ced2cf5e09fd69e371b6382a5.zip
external_llvm-56a4279d616e084ced2cf5e09fd69e371b6382a5.tar.gz
external_llvm-56a4279d616e084ced2cf5e09fd69e371b6382a5.tar.bz2
New fixed bug, distilled from 252.eon
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/C++Frontend')
-rw-r--r--test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp b/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp
new file mode 100644
index 0000000..77f6b1f
--- /dev/null
+++ b/test/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();
+}