diff options
Diffstat (limited to 'test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp')
-rw-r--r-- | test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp | 10 |
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 0000000000..77f6b1f259 --- /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(); +} |