Tanya Lattner | d13e0ae | 2004-11-06 22:29:57 +0000 | [diff] [blame] | 1 | // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null |
| 2 | |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame^] | 3 | // The C++ front-end thinks the two foo's are different, the LLVM emitter |
Chris Lattner | 56a4279 | 2003-09-30 15:40:25 +0000 | [diff] [blame] | 4 | // thinks they are the same. The disconnect causes problems. |
| 5 | |
| 6 | void foo() { } |
| 7 | |
| 8 | void bar() { |
| 9 | void foo(); |
Misha Brukman | fd93908 | 2005-04-21 23:48:37 +0000 | [diff] [blame^] | 10 | |
Chris Lattner | 56a4279 | 2003-09-30 15:40:25 +0000 | [diff] [blame] | 11 | foo(); |
| 12 | } |