blob: ed7c871a667074ac6aff01a4ea59d14367f16bc1 [file] [log] [blame]
Tanya Lattnerd13e0ae2004-11-06 22:29:57 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
Chris Lattner56a42792003-09-30 15:40:25 +00003// The C++ front-end thinks the two foo's are different, the LLVM emitter
4// thinks they are the same. The disconnect causes problems.
5
6void foo() { }
7
8void bar() {
9 void foo();
10
11 foo();
12}