[llvm-commits] CVS: llvm/test/Regression/CFrontend/2003-10-29-AsmRename.c
Chris Lattner
lattner at cs.uiuc.edu
Wed Oct 29 13:19:01 PST 2003
Changes in directory llvm/test/Regression/CFrontend:
2003-10-29-AsmRename.c added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes: (+20 -0)
Index: llvm/test/Regression/CFrontend/2003-10-29-AsmRename.c
diff -c /dev/null llvm/test/Regression/CFrontend/2003-10-29-AsmRename.c:1.1
*** /dev/null Wed Oct 29 13:18:58 2003
--- llvm/test/Regression/CFrontend/2003-10-29-AsmRename.c Wed Oct 29 13:18:48 2003
***************
*** 0 ****
--- 1,20 ----
+
+ 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);
+ }
More information about the llvm-commits
mailing list