view test02.c @ 25:6324b8df04f1

lj_as2: fix segmentation fault
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Sun, 31 Jan 2016 21:44:55 +0900
parents 35d6eabeadb0
children 586096c45873
line wrap: on
line source

#include<stdio.h>

__code test_code(void){
  printf("\t\ttest_code: return 10\n");
  return;
}

__code test_goto(int a){
  printf("\ttest_goto: a = %d\n", a);
  goto test_code();
}

int main(int argc, char **argv){
  int ret=0;
  printf("test code\n");
  test_goto(20);
  printf("main: ret = %d\n", ret);
  
  return 0;
}