Dan Gohman | 0d4bbf2 | 2009-08-25 15:38:29 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null |
Tanya Lattner | ca21187 | 2004-11-06 22:41:00 +0000 | [diff] [blame] | 2 | |
Chris Lattner | cbeda5a | 2003-10-29 19:18:48 +0000 | [diff] [blame] | 3 | |
| 4 | struct foo { int X; }; |
| 5 | struct bar { int Y; }; |
| 6 | |
| 7 | extern int Func(struct foo*) __asm__("Func64"); |
| 8 | extern int Func64(struct bar*); |
| 9 | |
| 10 | int Func(struct foo *F) { |
| 11 | return 1; |
| 12 | } |
| 13 | |
| 14 | int Func64(struct bar* B) { |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | |
| 19 | int test() { |
| 20 | Func(0); /* should be renamed to call Func64 */ |
| 21 | Func64(0); |
| 22 | } |