scc

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

0119-macrostr.c (185B)


      1 #define B "b"
      2 
      3 char s[] = "a" B "c";
      4 
      5 int
      6 main()
      7 {
      8 	if (s[0] != 'a')
      9 		return 1;
     10 	if (s[1] != 'b')
     11 		return 2;
     12 	if (s[2] != 'c')
     13 		return 3;
     14 	if (s[3] != '\0')
     15 		return 4;
     16 	return 0;
     17 }