aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp
blob: ed7c871a667074ac6aff01a4ea59d14367f16bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null

// 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();
}