scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

0059-multistring.c (246B)


      1 int main()
      2 {
      3 	char * s;
      4 	
      5 	s = "abc" "def";
      6 	if(s[0] != 'a') return 1;
      7 	if(s[1] != 'b') return 2;
      8 	if(s[2] != 'c') return 3;
      9 	if(s[3] != 'd') return 4;
     10 	if(s[4] != 'e') return 5;
     11 	if(s[5] != 'f') return 6;
     12 	if(s[6] != 0) return 7;
     13 	
     14 	return 0;
     15 }