[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 13 22:07:04 PST 2004
Changes in directory llvm/test/Regression/CFrontend:
2004-02-13-BuiltinFrameReturnAddress.c.tr added (r1.1)
---
Log message:
Testcase for builtin frame/return address
---
Diffs of the changes: (+8 -0)
Index: llvm/test/Regression/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr:1.1
*** /dev/null Fri Feb 13 22:06:59 2004
--- llvm/test/Regression/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr Fri Feb 13 22:06:48 2004
***************
*** 0 ****
--- 1,8 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep 'llvm.*address' | wc -l | grep 4
+
+ void *test1() {
+ return __builtin_return_address(1);
+ }
+ void *test2() {
+ return __builtin_frame_address(0);
+ }
More information about the llvm-commits
mailing list