scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

0146-ifdef.c (450B)


      1 #define FOO
      2 
      3 #ifdef FOO
      4 	int a;
      5 	int b;
      6 	#undef FOO
      7 	#ifndef FOO
      8 		int c;
      9 		int d;
     10 	#else
     11 		int e;
     12 		int f;
     13 	#endif
     14 	int e;
     15 	int f;
     16 	#ifdef FOO
     17 		int c_;
     18 		int d_;
     19 	#else
     20 		int e_;
     21 		int f_;
     22 	#endif
     23 	int e_;
     24 	int f_;
     25 int
     26 main()
     27 {
     28 	return 0;
     29 }
     30 #else
     31 	int j;
     32 	int k;
     33 	#ifdef FOO
     34 		int j;
     35 		int k;
     36 	#else
     37 		int n;
     38 		int o;
     39 	#endif
     40 	int n;
     41 	int o;
     42 	#ifndef FOO
     43 		int r;
     44 		int s;
     45 	#else
     46 		int t;
     47 		int u;
     48 	#endif
     49 	int t;
     50 	int u;
     51 	#error bad branch
     52 #endif