blob: 94c11998963babd33e348524bc40866f980b8cab [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
Tanya Lattnerd13e0ae2004-11-06 22:29:57 +00002
Misha Brukmanfd939082005-04-21 23:48:37 +00003// The C++ front-end thinks the two foo's are different, the LLVM emitter
Chris Lattner56a42792003-09-30 15:40:25 +00004// thinks they are the same. The disconnect causes problems.
5
6void foo() { }
7
8void bar() {
9 void foo();
Misha Brukmanfd939082005-04-21 23:48:37 +000010
Chris Lattner56a42792003-09-30 15:40:25 +000011 foo();
12}