1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/FrontendC/2003-10-29-AsmRename.c

23 lines
350 B
C
Raw Normal View History

2004-11-06 23:41:00 +01:00
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2003-10-29 20:18:48 +01:00
struct foo { int X; };
struct bar { int Y; };
extern int Func(struct foo*) __asm__("Func64");
extern int Func64(struct bar*);
int Func(struct foo *F) {
return 1;
}
int Func64(struct bar* B) {
return 0;
}
int test() {
Func(0); /* should be renamed to call Func64 */
Func64(0);
}