view tests/t32.c @ 160:d6e6b3940780

Fully implement #line.
author Joerg Sonnenberger <joerg@bec.de>
date Fri, 27 Feb 2015 02:06:49 +0100
parents a403605d3166
children
line wrap: on
line source

#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)