xref: /netbsd-src/external/bsd/tradcpp/dist/tests/t32.c (revision 31615c9617fab4df7f5e221552df7da87f14320d)
1*31615c96Sdholland #define foo(x) "x"
2*31615c96Sdholland #define bar(x) 'x'
3*31615c96Sdholland #define baz frob
4*31615c96Sdholland foo(3)
5*31615c96Sdholland bar(3)
6*31615c96Sdholland foo(baz)
7*31615c96Sdholland bar(baz)
8*31615c96Sdholland "baz"
9*31615c96Sdholland 'baz'
10*31615c96Sdholland "foo(baz)"
11*31615c96Sdholland "bar(baz)"
12*31615c96Sdholland 
13*31615c96Sdholland #define foo2(x) foo(x)
14*31615c96Sdholland #define bar2(x) bar(x)
15*31615c96Sdholland foo2(baz)
16*31615c96Sdholland bar2(baz)
17*31615c96Sdholland 
18*31615c96Sdholland #define foo3(x) foo2(x)
19*31615c96Sdholland #define bar3(x) bar2(x)
20*31615c96Sdholland foo3(baz)
21*31615c96Sdholland bar3(baz)
22