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 | |||||
Chris Lattner | 56a4279 | 2003-09-30 15:40:25 +0000 | [diff] [blame] | 3 | // 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 | |||||
6 | void foo() { } | ||||
7 | |||||
8 | void bar() { | ||||
9 | void foo(); | ||||
10 | |||||
11 | foo(); | ||||
12 | } |