scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

test028.c (282B)


      1 /* See LICENSE file for copyright and license details. */
      2 
      3 /*
      4 name: TEST028
      5 description: Test of reinterpretation in define
      6 error:
      7 output:
      8 G6	P	F	"foo
      9 {
     10 \
     11 V8	K	#N3
     12 Y10	V8	"	(
     13 	#"hi
     14 	#K00
     15 )
     16 	h	Y10	'P
     17 }
     18 */
     19 
     20 
     21 #define M(x) x
     22 #define A(a,b) a(b)
     23 
     24 char *
     25 foo(void)
     26 {
     27 	return A(M,"hi");
     28 }