shithub: front

ref: 2d28717d80571e9469a59098150996b28404709f
dir: /sys/src/cmd/cpp/test/edges.expected/

View raw version
#line 1 "/sys/src/cmd/cpp/test/edges.in"




-- test nop --
x fooEOF y
x EOFfoo y
x(-1) y
y foo x
x foo y
X y

-- test ncat --

 foobar

-- test xcat (no left arg) --

foo ## bar

-- test cat3 --

 ablahb

-- test expand and cat --


 33

-- test expand and cat 2 --

 a bc d
WUT

-- test varargs --

 print("hi","there")
 print("hi",)

-- test expanding commas --



 a,b















-- test complex expressions --
 f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1);
 f(2 * (2 +(3,4)- 0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^ m(0,1);
#line 64 "/sys/src/cmd/cpp/test/edges.in"

-- test empty args --

 b

-- test complex expressions with empty args --
 int i[] = {1,23,4,5, };
char c[2][6] = {"hello","" };