Files
cdesktop/cde/util/tradcpp/tests/t32.c
Jon Trulson 215be15f16 Add tradcpp to the repository, and use it as GENCPP (generic preprocessor)
With lots of experimenting, tradcpp (0.4) seems to work way better
than gcc, and it's output is actually valid. We'll go with that for
now.
2019-10-30 19:19:21 -06:00

22 lines
257 B
C

#define foo(x) "x"
#define bar(x) 'x'
#define baz frob
foo(3)
bar(3)
foo(baz)
bar(baz)
"baz"
'baz'
"foo(baz)"
"bar(baz)"
#define foo2(x) foo(x)
#define bar2(x) bar(x)
foo2(baz)
bar2(baz)
#define foo3(x) foo2(x)
#define bar3(x) bar2(x)
foo3(baz)
bar3(baz)