aboutsummaryrefslogtreecommitdiff
path: root/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp
blob: 77f6b1f259a93cafdf4bf924bcdc6b28091a73b1 (plain)
1
2
3
4
5
6
7
8
9
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();
}