Mercurial > hg > Members > nobuyasu > test
changeset 3:e9211e83b79d
update return_cbc.cbc
author | e085711 |
---|---|
date | Tue, 01 Mar 2011 04:38:41 +0900 |
parents | e0fdef113de4 |
children | 3b02b3b26cfe |
files | returnCheck/Makefile returnCheck/return returnCheck/return.o returnCheck/return_cbc.cbc |
diffstat | 4 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/returnCheck/Makefile Tue Mar 01 04:37:40 2011 +0900 +++ b/returnCheck/Makefile Tue Mar 01 04:38:41 2011 +0900 @@ -2,7 +2,7 @@ # Makefile # -program = return +program = return objs = return.o #CC = gcc CC = ~/hg/CbC/build-CbC/INSTALL_DIR/bin/cbc-gcc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/returnCheck/return_cbc.cbc Tue Mar 01 04:38:41 2011 +0900 @@ -0,0 +1,16 @@ +#include<stdio.h> + +int BUFSIZE = 1024; + +__code method(int n); + +__code method(int n){ + // char string[BUFSIZE]; + printf("%d\n",n); + goto method(++n); +} + +int main(int argc, char* argv[]){ + goto method(0); + return 0; +}