blob: b1c54b89d5994d63caf5b08fa6841d8281ca8837 [file] [log] [blame]
Tanya Lattnerd13e0ae2004-11-06 22:29:57 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
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}